WatchOS 2 (beta 5): watchAppInstalled returns fals

2019-03-25 05: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.