本文翻译自:App installation failed due to application-identifier entitlement
I am unable to install a watchOS 2 WatchKit app due to an application-identifier entitlement. 由于具有应用程序标识符的权利,我无法安装watchOS 2 WatchKit应用程序。 This happened after turning on App Groups in the Capabilities tab. 在“功能”选项卡中打开“应用程序组”后,发生了这种情况。
Full error: 完整错误:
App installation failed 应用安装失败
This application's application-identifier entitlement does not match that of the installed application. 此应用程序的应用程序标识符权利与已安装的应用程序的权利不匹配。 These values must match for an upgrade to be allowed. 这些值必须匹配才能允许升级。
This is running the app in debug mode on a physical device. 这是在物理设备上以调试模式运行应用程序。 Running just the iOS app works fine. 仅运行iOS应用程序即可正常运行。
I have turned App Groups off again and removed the entitlements files that were added, but same error. 我再次关闭了应用程序组,并删除了已添加的权利文件,但存在相同的错误。
#1楼
参考:https://stackoom.com/question/2d6Ox/应用安装失败-原因是应用标识符具有
#2楼
I had this problem with an iPhone app, and fixed it using the following steps. 我在iPhone应用程序中遇到了此问题,并使用以下步骤修复了该问题。
- With your device connected, and Xcode open, select Window->Devices 连接设备并打开Xcode后,选择Window-> Devices
- In the left tab of the window that pops up, select your problem device 在弹出的窗口的左侧标签中,选择问题设备
- In the detail panel on the right, remove the offending app from the "Installed Apps" list. 在右侧的详细信息面板中,从“已安装的应用程序”列表中删除有问题的应用程序。
After I did that, my app rebuilt and launched just fine. 完成之后,我的应用程序重新构建并正常运行。 Since your app is a watchOS app, I'm not sure that you'll have the same result, but it's worth a try. 由于您的应用是watchOS应用,因此我不确定您是否会获得相同的结果,但是值得尝试。
#3楼
I tried a few thing myself like updating/making new provisioning profiles, fixing entitlements in Apple Member Center and in project but in my case, I simply had to delete the application and re-run it. 我自己尝试了一些操作,例如更新/制作新的配置文件,在Apple Member Center和项目中修复权利,但就我而言,我只需要删除应用程序并重新运行即可。
o_O o_O
This application's application-identifier entitlement does not match that of the installed application. 此应用程序的应用程序标识符权利与已安装的应用程序的权利不匹配。
NOTE: it says " ...does not match the installed application " 注意:提示“ ...与安装的应用程序不匹配 ”
I guess it happened for me because we added a new app extension and there must have been some target related migration issues? 我想这件事对我来说是发生了,因为我们添加了一个新的应用程序扩展,并且肯定存在一些与目标相关的迁移问题? Not sure but anyways 不确定但还是
#4楼
The accepted answer didn't work for me. 接受的答案对我不起作用。 To make it work I had to reset the Apple Watch to the last available backup. 为了使其正常工作,我必须将Apple Watch重置为上一次可用的备份。
#5楼
卸载主要的iPhone应用程序,Watch应用程序,然后再次构建它们即可解决问题。
#6楼
I had the same error until I restored the watch to factory defaults as per https://forums.developer.apple.com/thread/17948 在按照https://forums.developer.apple.com/thread/17948将手表恢复为出厂默认设置之前,我遇到了同样的错误。
"Apparently if you have and existing WatchOS 1 app and try to update it to WatchOS 2 the bundle identifier changes and causes this error. If you update your watch you will need to do reset it if you had installed WatchOS1 app before updating that app to WatchOS2." “显然,如果您有和现有的WatchOS 1应用程序,并尝试将其更新为WatchOS 2,则捆绑包标识符会更改并导致此错误。如果您更新手表,则必须先重置它,如果您已经安装了WatchOS1应用程序,然后再将该应用程序更新为WatchOS2。”