由于应用程序标识符授权,我无法安装watchOS 2 WatchKit应用程序。这发生在打开功能选项卡中的应用程序组之后。

完整的错误:

App安装失败 此应用程序的应用程序标识符授权与已安装应用程序的应用程序标识符授权不匹配。这些值必须匹配才能允许升级。

这是在物理设备上以调试模式运行应用程序。只运行iOS应用程序就可以了。

我再次关闭了应用程序组,并删除了添加的授权文件,但同样的错误。


当前回答

上面的答案对我都没用。 我的问题是:我从Testflight安装了一个应用版本,所以我删除了旧的应用和Testflight版本,然后它又开始工作了。

其他回答

卸载主要的iPhone应用程序,Watch应用程序并重新构建它们可以解决这个问题。

我没有删除应用程序就解决了这个问题

在xcode中打开项目。 项目->构建设置->代码签名->配置文件(下拉) 它可能被设置为自动,并且选择了错误的配置文件。打开下拉菜单,选择正确的,然后重新运行应用程序。

我有同样的错误,我解决了它通过改变Bundle Identifier的一些新的东西。之后,它建立项目没有任何问题。

我的步骤:

打开Xcode 进入“常规”选项卡 找到身份 将Bundle Identifier更改为新的内容。

步骤

连接好设备,打开Xcode,选择Window->Devices 现在选择应用程序并使用设置图标下载容器 删除应用 再次使用Xcode安装app 停止Xcode 进入Window->Device,选择该应用程序并替换之前应用程序的备份容器

我遇到了这个问题,如果不删除并重新安装应用程序就无法解决这个问题(正如这里的一些人所建议的那样,打乱配置文件并没有帮助)。

但是,我并没有丢失现有的测试数据。对于将来遇到这种问题的人,以下是解决方法:

Before removing the app, open the Xcode "Devices" window (that's cmd-shift-2). Select your device and find your app in the "Installed Apps" list. Click on the gear icon and select "Download Container...". This will copy all of the app's data to your Mac. Save that somewhere for now. Delete the app and reinstall it from Xcode. Kill the app from Xcode (click the stop button), so it's not running. Back in the "Devices" window, click the gear icon and select "Replace Container...". Select the data that you downloaded to your Mac in step 3.

Xcode会恢复你之前保存的应用数据。 现在您已经恢复了旧的测试数据,应用程序应该可以运行了。