I have a maccatalyst App on the store, uploaded 20 March. Am now attempting to upload a new version but it fails with:
"Unable to process application at this time due to the following error: Invalid Provisioning Profile. The provisioning profile included in the bundle maccatalyst.com.plugh.XYZZY [maccatalyst.com.plugh.XYZZY.pkg/Payload/XYZZY.app] is invalid. [Invalid 'com.apple.application-identifier' entitlement value.] For more information, visit the macOS Developer Portal"
As I mentioned this App is already on the store and nothing has change in the project relating to profiles/signing to my knowledge other than a new Xcode. In fact, signing and provisioning is all automatic, and the maccatalyst app id is auto-generated
Interestingly, I still have the previous App bundle that was successfully uploaded to the store, and when I (re-)verify it there is an identical error to the above. So I am at a loss as to how to move ahead at this point in time.
I do not spend as much time finding obscure bugs as I did on this issue. In hindsight, this is probably the solution:
(cd ~/Library/MobileDevice/Provisioning\ Profiles/; rm *)
Really short story before my brain glazes over:
- This was an iPad app that I had checked the Mac box, and after the proper machinations there were two distinct Apps in Connect, and the Xcode project had co-mingled build settings and a new Mac target. You all know the drill. 2/3 sister Apps continue to work in that mode, although I wonder for how long?
- I grep-ed through Provisioning\ Profiles and removed those which seemed relevant, no luck.
- I grep-ed through Xcode project files and didn’t see anything to filemod!
- I tried “joining” the Apps, which required I remove the MacCat app from sale. Bad move, now I have one instance of the App, of which only the iOS half is usable.
- I found this SO page, https://stackoverflow.com/questions/60611420/error-itms-90283-with-invalid-com-apple-application-identifier-entitlement-va, which describes the *exact* same problem, so taking hints from that …
- I turned off automatically generated MacCat bundle ID and made a new one, created a new App ID with that bundle name, manually provisioned that new App, and … still no luck.
- … lots of other stuff … fail.
- Finally I went berserk: (cd ~/Library/MobileDevice/Provisioning\ Profiles/; rm *)
- Then everything worked. So I’m guessing I wasted a lot of time, profiles, App Ids and sleep.
At least that the gist of what went down, the details are no doubt only fuzzily correct.