App installation failed due to application-identifier entitlement

后端 未结 30 3491
轮回少年
轮回少年 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: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.

提交回复
热议问题