App installation failed due to application-identifier entitlement

后端 未结 30 3468
轮回少年
轮回少年 2020-12-07 07:40

I am unable to install a watchOS 2 WatchKit app due to an application-identifier entitlement. This happened after turning on App Groups in the Capabilities tab.

Full

相关标签:
30条回答
  • 2020-12-07 08:06

    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.

    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

    0 讨论(0)
  • 2020-12-07 08:07

    In most of the responses to this issue, there's one critical aspect being overlooked that was brought up by the original asker. The app needs to be installed without deleting the existing install. In my case, the app uses an SQLite database that stores quite a bit of data for the user. Obviously, if you delete the app, then you delete the data. A solution that allowed me to test it in the same way a user will update it was a must.

    In my case, the issue was Xcode using a provisioning profile automatically generated by Xcode. This probably happened because I got a new computer and didn't transfer the distribution provisioning profile over. Not to mention, I had not updated the app in almost 2 years. So my original provisioning profile (which contains the Entitlements application-identifier) was long gone. Solution: in Xcode preferences-> Accounts-> Select the appropriate Apple ID-> View Details-> Under Provisioning Profiles, right-click on the Xcode-generated profile for that app (it's prefixed with XC iOS), and select Move to Trash.

    On the developer website, create a new distribution profile with your App's ID. Download the new profile, double click and Xcode should automatically install it. Conversely, you could return to the profiles listed in Xcode and tap the Download button next to your newly created profile. Build the app and try running again. By the way, my Xcode is set to automatically manage code signing, which other than this issue works great.

    0 讨论(0)
  • 2020-12-07 08:08

    I had this problem and was not able to resolve it without deleting and reinstalling the app (messing with provisioning profiles, as some here suggested, did not help).

    However, I did not lose my existing test data. Here's how to do that, for anyone having this problem in the future:

    1. Before removing the app, open the Xcode "Devices" window (that's cmd-shift-2).
    2. Select your device and find your app in the "Installed Apps" list.
    3. 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.
    4. Delete the app and reinstall it from Xcode. Kill the app from Xcode (click the stop button), so it's not running.
    5. 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 will then restore your previously saved app data. You now have your old test data back, and the app should run.

    0 讨论(0)
  • 2020-12-07 08:09

    The accepted answer didn't work for me. To make it work I had to reset the Apple Watch to the last available backup.

    0 讨论(0)
  • 2020-12-07 08:10

    TLDR - delete the app from the device and run again.

    In my case :
    1. I compiled and run the app on the iPhone device.
    2. I open in the setting the Capabilities and turn on the iCloud
    3. Then I try to run the app again, boom, 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.

    4.Then I deleted to app from the iPhone (after I read the answers here)
    5.Everything works O.K

    0 讨论(0)
  • 2020-12-07 08:12

    For the people who might be part of more than one team, this can be your problem:

    • If the app's bundle id is hard coded in your Info.plist then Xcode can get confused and throw this tantrum.

    To fix:

    • Make sure that the bundle id is set as:

      $(PRODUCT_BUNDLE_IDENTIFIER)

    0 讨论(0)
提交回复
热议问题