由于捆绑标识符问题,应用程序未在Apple Watch模拟器中运行

时间:2015-06-04 06:37:36

标签: iphone xcode apple-watch

我正在构建一个Apple Watch应用程序,我为其创建了一个AppGroup,并设置了配置文件和证书。

现在的问题是在构建/运行" watchkit app" xcode抛出错误说,

warning: Capabilities that require entitlements from “appname WatchKit Extension/appname WatchKit Extension.entitlements" may not function in the Simulator because the provisioning profile specified in your build settings (“WatchKitProfile”) has an AppID of “com.id.watchApp” which does not match your bundle identifier “com.id.watchApp.watchkitextension”.

并且在applewatch模拟器中没有显示任何内容。但是应用程序在iPhone模拟器中运行良好。

即使是applewatch方法也没有调用WKInterfaceController.openParentApplication

还有一个疑问,我使用的是已经被其他成员使用的appgroup。这会产生任何问题,或者这是此警告的问题。

任何人都可以帮助我。

1 个答案:

答案 0 :(得分:0)

创建应用程序ID时,需要重新生成配置文件,因为它们不会列出新创建的应用程序ID。 Xcode可以自动执行此操作作为“修复问题”提示。

确保在创建应用程序ID后,通过功能选项卡将其添加到主应用程序和监视工具包应用程序扩展中,然后单击“修复问题”直到一切正常。