WatchKit问题:SPErrorInvalidBundleNoGizmoBinaryMessage

时间:2015-04-06 20:21:08

标签: ios watchkit xcode-6.2

项目编译正常,但是当我尝试使用Apple Watch模拟器时,我从xCode收到此错误:     SPErrorInvalidBundleNoGizmoBinaryMessage

我尝试:清理项目(cmd + maj + k& cmd + maj + opt + k),清理DerivedData文件夹,卸载应用程序,更改模拟器类型....

我在iPhone应用程序,Watchkit扩展程序和Watchkit App中检查了捆绑包ID,但每件事看起来都是正确的。

感谢。

2 个答案:

答案 0 :(得分:0)

检查您是否拥有包含app和WatchKit应用程序的相同版本(CFBundleVersion)。 这是导致我在Xcode 6.2中出现此问题的问题。

答案 1 :(得分:0)

我也面临同样的问题。我通过做以下事情解决了这个问题。

  1. 您的应用程序,WatchKit扩展程序,WatchKit应用程序的目标三者应具有相同的构建版本和版本号。
    1. 检查WatchKit Extension的info.plist和WatchKit App的info.plist。在WatchKit Extension的info.plist文件中检查,NSExtension> NSExtensionAttributes> WKAppBundleIdentifier。 WKAppBundleIdentifier必须与WatchKit App的Bundle Identifier相同。

    2. 清理WatchKit App项目并再次运行。

      工作!