Iphone 由于包标识符问题,应用程序未在apple watch模拟器中运行

Iphone 由于包标识符问题,应用程序未在apple watch模拟器中运行,iphone,xcode,apple-watch,Iphone,Xcode,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 Simulato

我正在构建一个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

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


任何人都可以在这方面帮助我。

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

确保创建应用程序ID后,通过“功能”选项卡将其添加到主应用程序和watch kit应用程序扩展中,并单击“修复问题”,直到一切正常