草庐IT

watchKit

全部标签

ios - 在 apple iWatch 中,后台任务未被调用或按计划时间触发

当应用程序在后台触发任务时更新位置。但无法以后台模式执行任务。我的scheduleBackgroundRefreshWithPreferredDate示例代码如下[WKExtension.sharedExtensionscheduleBackgroundRefreshWithPreferredDate:[NSDatedateWithTimeIntervalSinceNow:60]userInfo:nilscheduledCompletion:^(NSError*_Nullableerror){if(error==nil){NSLog(@"backgroundrefreshtaskre-

ios - 默认情况下,iPhone 的应用程序通知是否会在 Apple Watch 上触发,甚至无需创建实际的 Watch 应用程序?

我想从AppleWatch发布的第一刻起就在AppleWatch中支持我的iPhone应用程序本地通知,但我还不打算构建Watch应用程序。根据我的研究,AppleWatch似乎会自动支持iPhone的通知,无需任何额外的开发或WatchKit实现。Appsarenotrequiredtodoanythingtosupportnotifications.Thesystemprovidesadefaultnotificationinterfacethatdisplaysthealertmessagefromthenotification.However,appscancustomizet

ios - Apple Watch 应用程序在 iOS 8.2 上被删除后不会重新安装,只是卡在启动屏幕上

我可以在我的watch上安装我的AppleWatch应用程序(正在生产中),它第一次加载就很好。如果我卸载它并重新安装它,它安装得很好,但是当我点击它的图标时它就会挂起。它有加载指示器和应用名称,但永远不会加载。这是设备日志中的错误:Jul615:20:23xxxxx-iPhonecompanionappd[417]:(Error)WatchKit:***After10.0secs,beginUsing:hasn'tcalledusbackforpluginwithbeginUsingInstanceUUID53259124-xxxx-454F-xxxx-FD013DxxxxxxJul

ios - 二进制拒绝 - 无效的 Watchkit 支持

我们开发Watchkitapp大约1.5个月,之前用Xcode6.2beta2,beta4,Xcode6.3beta开发,现在用Xcode6.2(6c131e)开发我们使用Xcode6.2(6c131e)来归档我们的项目,并使用Applicationloader来提交我们的应用。然后我们收到了拒绝:"ThebundlecontainsaninvalidimplementationofWatchKit.Theappmayhavebeenbuildorsignedwithnon-compliantorpre-releasetools.Visitdeveloper.apple.comform

ios - Watchkit 新 session 不起作用

我的watch扩展中有两个ViewController。每当我调用[[WCSessiondefaultSession]sendMessage:applicationDatareplyHandler:^(NSDictionary*reply){}我只得到第一个ViewController的响应,第二个ViewController出现错误ErrorDomain=WCErrorDomainCode=7011"Messagereplyfailed."UserInfo={NSUnderlyingError=0x79f1f100{ErrorDomain=WCErrorDomainCode=7010

ios - 设置包不适用于 watchOS 2

这在watchOS1上不是问题,但现在在watchOS2上我无法读取watch扩展上的值。根据Appledocs,有可能的。据一些人说thisthread,有可能的。据Apple员工称thisthread,这是可能的。据我所知,我正在正确设置所有内容:我在iOS应用和watch扩展上启用了应用组相同的标识符。我将Settings-Watch.bundle添加到iOS应用并添加了相同的ApplicationGroupContainerIdentifierplist的标识符当我使用标识符作为套件名称初始化NSUserDefaults对象时,我无法读取watch扩展上的值。我可以在iOS应用

ios - 从 Xcode 构建脚本/xcodebuild 中排除 App Extension (WatchKit)

我们目前使用的CI服务适用于iOS8.1(如果我错了请纠正我)不支持AppleWatch/WatchKit。我已经对Xcode进行了一些搜索和探索,但无济于事。我正在寻找一种从构建中排除我的AppleWatch扩展的方法-通过Xcode中的RunBuildScript,或者直接通过xcodebuild命令。有人有什么建议吗? 最佳答案 查看您的[MainTarget]>BuildPhases>TargetDependencies和[MainTarget]>BuildPhases>EmbedAppExtensions并从两者中删除Wa

ios - 提交到 App Store 时找不到与 WatchKit 扩展匹配的配置文件

我正在使用xcode6.3xcode自动创建了一个配置文件“xxx.xxx.xxx.watchkitextension”,在watchkit扩展目标的代码签名中,我尝试选择这个配置文件或让它保持自动,他们都给我这个错误“失败当我将其提交到AppStore时找到或生成匹配的签名Assets”。有什么想法吗?谢谢。 最佳答案 这个问题看起来和这个问题很相似。SubmitWatchKitProvisioningError我遇到了同样的问题。这是对我有用的解决方案。技术问答QA1830beta-reports-active权利问:如何解决“

ios - iPhone 中的 WatchConnectivity 连接 -> 观看方向

我试图让WCSession(Xcode7.0beta5)在真实设备上的Phone->Watch方向上工作(在模拟器中它工作得很好)但每次都会出错:Error:"Domain=WCErrorDomainCode=7006Watchappisnotinstalled".我的意思是在Watch->Phone方向上一切正常(sendMessage:、updateApplicationContext:、CoreLocation等)。为了排除与代码相关的问题,我使用Apple的Potloc应用程序进行测试。看来我已经尝试了所有方法,这里是完整列表:配对/未配对watch。重启iPhone/Watc

ios - WatchKit应用提交失败;最小操作系统版本

提交WatchKit1.2配套应用程序,在验证期间失败并出现此错误:错误ITMS-90455“无效的WatchKit应用程序包。不支持包‘redactedbundlename.watchkitapp’中info.plist中MinimumOSVersion键的值‘2.1’”我在watch应用plist或设置中找不到MinimumOSVersionkey,在手机应用的build设置或plist中也找不到。唯一提到的与“2.1”相关的内容是在我的build设置中:诊断此问题有什么想法吗? 最佳答案 已修复!出于某种原因,您需要将WATC