Watch App已安装在手表上,我可以在手表上点击并运行它,但是watchAppInstalled
方法返回 false。
另外,我只能使用 Xcode 7 安装 Watch 应用程序。如果我尝试通过打开开关使用 Watch iOS 应用程序(来自 Apple)安装 Watch 应用程序,则 Watch 应用程序会在安装完成后立即被删除。
Update:此错误已在 Xcode 7 beta 6 中修复
苹果文档 https://developer.apple.com/library/prerelease/ios/documentation/WatchConnectivity/Reference/WCSession_class/index.html#//apple_ref/occ/instp/WCSession/watchAppInstalled says:
在访问此会话之前必须配置并激活会话
财产。
所以,你应该配置并激活 https://developer.apple.com/library/prerelease/ios/documentation/WatchConnectivity/Reference/WCSession_class/index.html#//apple_ref/occ/instm/WCSession/activateSession使用此属性之前的会话。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)