I'm trying to update our Mac version of our iOS app using Xcode 14.2, the update worked using Xcode 11. The detailed error is:
Invalid Provisioning Profile. The provisioning profile included in the bundle maccatalyst.com.xxxxxxx.yyyyyyyy [maccatalyst.com.xxxxxxx.yyyyyyyy.pkg/Payload/yyyyyyy.app] is invalid. [Invalid 'com.apple.application-identifier' entitlement value.] For more information, visit the macOS Developer Portal. (ID: 8dd00921-66a8-4eea-b0c5-e674b5073df5)
The entitlements are:
com.apple.security.files.user-selected.read-write
true
com.apple.developer.associated-application-identifier
YYYYYYYYYY.com.xxxxxxxx.yyyyyyyy
com.apple.application-identifier
ZZZZZZZZZZ.maccatalyst.com.xxxxxxxx.yyyyyyyyy
com.apple.security.network.server
true
com.apple.security.personal-information.photos-library
true
com.apple.security.device.bluetooth
true
get-task-allow
false
com.apple.security.network.client
true
com.apple.security.device.camera
true
com.apple.developer.team-identifier
ZZZZZZZZZZ
application-identifier
ZZZZZZZZZZ.maccatalyst.com.xxxxxxxxxx.yyyyyyyyy
com.apple.security.app-sandbox
true
com.apple.security.personal-information.location
true
I assume the problem has something to do with the application-identifier having a team identifier prefix (ZZZZZZ...) instead of the developer identifier prefix (YYYYYY...)? How can I fix this? I have seen posts from other people having the same problem but haven't found any solution.