I'm developing an iOS game that uses GameCenter. I'm trying to create a macCatalyst build, to distribute the game for macOS as well. The API calls to GameKit on macOS were failing to communicate to gamed. I fixed that by enabling Game Center (com.apple.developer.game-center) in the entitlements file. However, after doing so, the iOS build fails to install on any device, giving me this error message:
Provisioning profile <xxx> doesn't include the com.apple.developer.game-center entitlement.
I tried disabling automatic code signing and creating my own provisioning profiles, after enabling the macOS flag under GameCenter, in my app ID page in developer.apple.com,
But I still get the same error message.
If I try to re-enable automatic signing now, I get this other error message as well,
Automatic signing failed
Xcode failed to provision this target. Please file a bug report at <https://feedbackassistant.apple.com> and include the Update Signing report from the Report navigator.
Why does the iOS provisioning profile need an entry for the Game Center entitlement? Isn't that entitlements file used for macOS only?
How can I include that entitlement in the iOS Provisioning Profile?
At the moment, every time I need to build on an iOS device, I have to delete the Game Center entry in the entitlements file (setting it to NO doesn't work), and I have to re-add it when testing on Mac.
