lewis
lewis

Reputation: 3172

Works on Simulator, fails on device: error: WatchKit App doesn't contain any WatchKit Extensions

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

Things which may or may not be relevant

Things I’ve tried

In lieu of an answer, advice on debugging / troubleshooting this would be appreciated too.

Upvotes: 6

Views: 290

Answers (2)

samwize
samwize

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

John Pollard
John Pollard

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

Related Questions