swift - 仅在真实设备上出现 NSExtensionPointIdentifier 错误

标签 swift xcode7 watchos-2 watchos

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

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 的值设置正确。

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

最佳答案

我通过在扩展的build设置中将部署目标更改为 9.0 解决了这个问题。

关于swift - 仅在真实设备上出现 NSExtensionPointIdentifier 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32041382/

相关文章:

CocoaPods - 使用 Xcode-beta 为 iOS 9/Swift 2 构建

ios - SortInPlace 表达式太复杂 - Xcode 更新

ios - WatchOS 从 iPhone 获取数据

ios - swift 不确定layoutIfNeeded setNeedsUpdateConstraints或updateConstraints setNeedsLayout

objective-c - 为什么我的异步调用仍然阻止我与 Swift 中的 UI 元素交互?

ios - Unity 5.2 ios IL2CPP 构建给出空引用异常

swift - 标签上的 Apple Watch 文字

ios - 在模拟器中使用 didReceiveUserInfo

swift - 文本字段不起作用

ios - 如何配置自定义 UITableViewCell 一次?