NSExtensionPointIdentifier 错误仅在真实设备上 [英] NSExtensionPointIdentifier error only on real device

查看:48
本文介绍了NSExtensionPointIdentifier 错误仅在真实设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在我的设备上运行我的 Apple Watch 应用时出现以下错误:

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

错误:WatchKit App 不包含任何 WatchKit 扩展.核实你的 WatchKit 中 NSExtensionPointIdentifier 的值扩展的 Info.plist 设置为 com.apple.watchkit.

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.

NSExtensionPointIdentifier 的值设置正确.

The value of NSExtensionPointIdentifier is set correctly.

有其他人遇到过这个错误吗?

Has anyone else experienced this error?

推荐答案

尽管下面 StackOverflow 问题的错误信息是相反的(扩展不包含应用,而不是应用不包含扩展),暂时改变手表应用程序构建设置中的产品名称,然后将其改回来为我解决了问题:

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

这篇关于NSExtensionPointIdentifier 错误仅在真实设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆