我正在为我的一个应用程序编写一个手表应用程序。由于我的团队还没有 Apple Watch,我还在我的构建服务器上为我的 QA 团队构建了我的应用程序的模拟器版本,他们正在使用“xcrun simctl”来运行和测试手表应用程序本身。
在 Xcode 6.3 到来之前一切都很顺利。使用 Xcode 6.3,当我尝试在我的开发机器上本地构建应用程序时收到此错误:
error: The value of CFBundleVersion in your WatchKit app's Info.plist (1) does not match the value in your companion app's Info.plist (2.0.492). These values are required to match.
为了解决这个问题,我修改了我的info.plist文件以包含相同的CFBundleVersion
. 此修改修复了我本地开发机器上的构建问题,但是:QA 仍然能够运行 iOS 应用程序,但启动 Watch 应用程序失败并出现以下错误:
> xcrun simctl launch 0D5238ED-CBE9-4DCC-961D-BC756E0885CD com.company.enterprise.appname.watchapp
An error was encountered processing the command (code=4):
The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.)
我在系统控制台日志中看不到任何可能与此相关的内容。:/
你知道如何解决这个问题吗?
提前感谢您的帮助!