NSExtensionPointIdentifier error only on real device

I get the following error when I try to launch the Apple Watch application on my device:

Error: WatchKit application does not contain any WatchKit extensions. verify that the NSExtensionPointIdentifier value in your WatchKit Info.plist extension is installed in com.apple.watchkit.

NSExtensionPointIdentifier is set correctly.

Has anyone else experienced this error?

+2
source share
5 answers

I fixed the problem by changing the deployment target to 9.0 in the extension build settings.

0
source

Each time I met the same situation, below actions were decided:

1. clean your project and close Xcode.

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

3. modify the resulting file

4.pod update (install)

or doing the 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 
0
source

If you have the same problem, verify that the destination source files of the extension files are installed correctly.

0
source

I recently ran into this problem, the problem for me is that the Mach-O Type was set to static

Go to the watchkit app / extension settings and make sure:

Type Mach-O = Executable

0
source

Despite the fact that the error message from the following StackOverflow question is opposite (the extension does not contain the application, and the application does not contain the extension), temporarily changing the product name in the watch assembly settings and then changing it fixed the problem for me:

fooobar.com/questions/825571 / ...

0
source

Source: https://habr.com/ru/post/1011974/


All Articles