Reputation: 3172
I am seeing the following error when trying to run a project on a real device, in the simulator it runs fine.
error: WatchKit App doesn't contain any WatchKit Extensions. Verify that the value of NSExtensionPointIdentifier in your WatchKit Extension's Info.plist is set to com.apple.watchkit
< app id >
< app id >.watchkit
WKCompanionAppBundleIdentifier
: < app id >
< app id >.watchkit.extension
NSExtension
>NSExtensionAttributes
>WKAppBundleIdentifier
: < app id >.watchkit
NSExtension
>NSExtensionPointIdentifier
: com.apple.watchkit
WKWatchKitApp
is set to YES
in both the Watch Extension and the Watch AppBuild Phases
>Embed App Extensions
Mach-O Type
is set to executable
in all targetsIn lieu of an answer, advice on debugging / troubleshooting this would be appreciated too.
Upvotes: 6
Views: 290
Reputation: 27353
I encountered this error, with 3 other errors.
Turned out the problem is that Valid Architectures
is set incorrectly. Under Build Settings, make sure Valid Architectures
includes i386
and armv7k
.
Once that is fixed, the watch extension will be build, and all errors gone.
Upvotes: 0
Reputation: 450
I've seen this intermittently, but usually rebuilding a second time fixed it. I've never got to the bottom of why.
I've always assumed it's a bug in Xcode.
Sorry can't be more help, but you're not alone in seeing this.
Upvotes: 2