Upgrade's application-identifier entitlement string does not match installed application -> rejecting upgrade

本小妞迷上赌 提交于 2019-12-04 01:56:41
  1. Open Xcode - > Window -> Devices
  2. Click on your device and remove the app you are trying to install from the installed apps list.
  3. Try running now.
zcMACK

After doing some further reading, I found this answer to be helpful. In my case, I am building via a grunt script so I can modify my archive/sign/package step to insert the entitlements during the codesign step.

If you follow the steps I linked, you will want to make sure your entitlements.plist file contains the wildcard as shown below:

<key>application-identifier</key>
<string>com.company.*</string>

If you are doing the app packaging manually, you may want to look at iResign. This will create the entitlements.plist file for you and inject it while signing your app.

I wish there was better documentation available from Apple on this. I cannot get the same effect in XCode no matter what I specify in my target's Code Entitlements settings.

I have just had this error - it was because I had changed the development team used to sign the app. Ie I used our company's distribution profile to sign the development version and the client's distribution profile to sign a release version.

Check that the team id in the entitlements is the correct team id (printed in the error message) -> then its the installed app that is wrong. Also check that you haven't specified an application-identifier in an entitlements file. I didn't have an entitlements file at all.

In this case simply delete the app on the device and reinstall it fresh.

Chris

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!