Updating an App for the first time since 2011. Build, Analyze, Archive all successful. Automatically Manage Signing checked. Validation fails with 90286 - Invalid code signing entitlements, and 91130 - Invalid Provisioning Profile dozens of times after tweaks, clean builds, trying manual signing (thought I was done with that), etc.
For 90286 it seems my Developer ID , e.g. 346JXXXXX (not Team ID, QZ99XXXXX) is the prefix for the bundle ID, com.company.app-name and that generates the error?
For 91130 it's invalid "com.apple.application-identifier" which I assume is the same issue with a Developer ID instead of a Team ID.
The original version of the app was QZ99XXXXX.com.company.app-name. I even changed the bundle identifier in Xcode to that, and got this:
App Record Creation failed due to request containing an attribute already in use. The app name you entered is already being used for another app in your account. If you would like to use the name for this app you will need to submit an update to your other app to change the name, or remove it from App Store Connect.
Yes, the original app name is being used for an app in my account. I was trying to update the app, checked all the boxes, added update text, but of course there was no build to upload.
Would appreciate any help.
I’m glad you’re making progress here.
My experience helping folks with issues like this is that:
- They first bump into the issue when they adopt an API that requires a restricted entitlement. Prior to that they didn’t need a provisioning profile, and thus the unique App ID prefix wasn’t a concern.
- The first step is to contact DevPrograms to change the App ID prefix. There are a couple of pitfalls with that:
- The App ID prefix change can affect APIs, most notably the keychain. See App ID Prefix Change and Keychain Access.
- If the app includes app extensions, and those are also using a unique App ID prefix, you have to get DevPrograms to change their App IDs as well.
- Once that’s done, you can confirm that things are working correctly by manually creating a profile. See the instructions here. Again, if you have app extensions, you have to repeat this for each extension.
- Once that’s done it’s ‘merely’ a matter of getting Xcode to recognise the change. My process for that is:
- In the Xcode organiser, delete the archive that I’m trying to upload (or in the project, update the version).
- In the Xcode project, choose Product > Clean Build Folder.
- Quit Xcode.
- Trash the contents of
~/Library/Developer/Xcode/UserData/Provisioning Profiles[1]. - Relaunch Xcode.
- Choose Product > Archive.
- And then use the Xcode organiser to upload that.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] Or ~/Library/MobileDevice/Provisioning Profiles if you’re using an old version of Xcode.