由于bundle identifier问题,应用程序不能在apple watch模拟器中运行



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

现在的问题是,当构建/运行"watchkit应用程序"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

还有一个疑问,我正在使用其他成员已经使用过的应用组。这会产生任何问题吗?还是这就是这个警告的问题?

有谁能帮我一下吗

当您创建App ID时,您需要重新生成配置文件,因为它们不会列出新创建的App ID。Xcode可以自动为你做这个"Fix Issue"提示符。

确保一旦你创建了你的应用程序ID,你通过功能选项卡将它添加到主应用程序和手表套件应用程序扩展,然后单击修复问题,直到一切正常。

最新更新