2

I am getting the following error when I try to run my Apple Watch app on my device:

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.

The value of NSExtensionPointIdentifier is set correctly.

Has anyone else experienced this error?

Jake Chasan
  • 6,290
  • 9
  • 44
  • 90

5 Answers5

0

I fixed the issue by changing the deployment target to 9.0 in the Extension's Build Settings.

Anamika
  • 163
  • 2
  • 13
0

Every time I met same situation, below actions solved:

1.clean your project and close Xcode.

2.remove pod-related-files(Podfile.lock, Pods, ProjectName.xcworkspace)

3.remove derived file

4.pod update(install)

or, executing following shell(2,3,4) may help you.

#!/bin/sh
# remove derived file
rm -rf ~/Library/Developer/Xcode/DerivedData/
# remove pod-related-file
rm Podfile.lock
rm -rf Pods
rm -rf *.xcworkspace
# pod install(update)
pod install
# open projects
open ProjectName.xcworkspace
Tsuyoshi Endo
  • 727
  • 1
  • 7
  • 17
0

Had the same issue, please check that watch extension's source files' targets are properly set.

0

I ran into this issue recently, the problem for me ended up being Mach-O Type was set to static

Go to build settings of watchkit app/extension and make sure:

Mach-O Type = Executable

pflous
  • 573
  • 6
  • 17
0

Even though the error message from the following StackOverflow question is the opposite (extension doesn't contain app, instead of app doesn't contain extension), temporarily changing the product name in the watch app's build settings and then changing it back fixed the problem for me:

https://stackoverflow.com/a/41675320/462162

Community
  • 1
  • 1
arlomedia
  • 8,534
  • 5
  • 60
  • 108