WatchOS 2 (beta 5): watchAppInstalled returns false

霸气de小男生 提交于 2019-12-04 17:39:47

问题


The Watch App is installed on the watch and I can tap and run it on the Watch, but watchAppInstalled method returns false.

Also, I can only install the Watch App using Xcode 7. If I try to install the Watch App using the Watch iOS app (from Apple) by turning on the switch, the Watch App gets deleted right after the installation completes.

Update: This bug is fixed in Xcode 7 beta 6


回答1:


Apple Documentation says:

The session must be configured and activated before accessing this property.

So, you should configure and activate the session before using this property.




回答2:


I had same issue.

I just add WatchConnectivity.framework to my main app target and watch extension target. And it works now.

Hope i helped.

Cheers.

Update: i read comments above and check my architecture: already had arm64




回答3:


What worked for me was adding the arm64 architecture to both the Watch app and iOS app as @Zubair suggested.

Update: This bug is fixed in Xcode 7, beta 6




回答4:


It now works for me, what I did:

Reset and Re-coupled the Apple Watch and added a Passcode to it (what I never did before).

Edit: You can then safely disable the Passcode and it will still work.



来源:https://stackoverflow.com/questions/31908445/watchos-2-beta-5-watchappinstalled-returns-false

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!