Invalid 'com.apple.application-identifier' entitlement value.

I have the same problem as this question: https://developer.apple.com/forums/thread/757605 "That indicates you’re using a unique App ID prefix. This is a legacy feature that’s not supported on macOS."

Mine is a macOS App distributed in 2021, that now needs an update. It has always been under Xcode automatically managed signing with a Team. (Still have the project files from 2021: automatic)

Now validating a new version gives me that error :

Invalid Provisioning Profile. The provisioning profile included in the bundle com.*** [***.pkg/Payload/***.app] is invalid. [Invalid 'com.apple.application-identifier' entitlement value.] For more information, visit the macOS Developer Portal. (ID: ***)

And even re-validating the old archive from 2021 gives me this error.

I have looked at my Apple Id's on "Certificates, Identifiers & Profiles", and I can indeed see that this app has an "App ID Prefix" that is not my Team, but something I don't recognise.

I can not make a new App ID Configuration for the bundle id I have been using: "An App ID with Identifier 'com.<me>.appname' is not available. Please enter a different string."

Removing the existing App ID Config does not work either: The App ID '<prefix>.com.<me>.<appname>' appears to be in use by the App Store, so it can not be removed at this time.

So, I'm a bit stuck. (Help!)

Invalid 'com.apple.application-identifier' entitlement value.
 
 
Q