I am getting a AlertView popup error on iOS every time I try to install a watchOS 2 app in Xcode 7 beta 4:
Cannot Install Watch App<
I had this same issue. This happens due to issue while installing app on watchOS.
Below are some fix for this :
cmd+shift+K
and cmd+shift+option+K
- Clean Build Folder).Quit Xcode and re-build your app.
Delete app and reinstall it.
Solution 1 worked in my case.
Cleaning the build (shift-command-K) fixed this problem for me.
Looking through the device system logs, I found my issue:
Jul 26 18:05:14 MacBook-Pro companionappd[22461]: (Error) WatchKit: validateWatchKitApplicationInfoDictionary, invalid Info.plist key 'NSAppTransportSecurity'
I had an App Transport Security key set on both the watchOS app info.plist
and the watchOS extension info.plist
. It should only be set on the extension.
You should remove NSAllowsArbitraryLoads key from info.plist of watch app. Watch Extension only allow NSAllowsArbitraryLoads key to include. Because only extension is responsible for handling all these things not the watch app.
You may need to delete the app in iPhone then launch again to solve this problem :)
In my case, the problem was solved with these process.