Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Mac Store - Game Centre Entitlement Problem

Discussion in 'Editor & General Support' started by Evil-Twin, Aug 28, 2014.

  1. Evil-Twin

    Evil-Twin

    Joined:
    Jun 4, 2013
    Posts:
    3
    As described in this thread by others - http://forum.unity3d.com/threads/ur...cted-because-gamekit-framework-linked.261354/ - our game was uploaded to the Mac app store recently with no problems, but a few weeks later, they have changed their admission policy, and reject the game's update. Seemingly Unity automatically includes the GameKit framework, and Apple will not accept that being used without adding the Game Centre entitlement.

    So as a solution to appease Apple, we added Game Centre to the Mac store version, so we could add the entitlement without getting further rejections. However upon adding the entitlement "com.apple.developer.game-center", codesigning and creating an installer via command line, and attempting to upload this update via application loader, it fails with the following messages:

    Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile: 'com.apple.developer.game-center' in '[app name].app/Contents/Frameworks/MonoEmbedRuntime/osx/libMonoPosixHelper.dylib'.

    Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile: 'com.apple.developer.game-center' in '[app name].app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib'.

    Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile: 'com.apple.developer.game-center' in '[app name].app/Contents/MacOS/[app name]'.


    This is baffling, as our provisioning profile definitely claims to have Game Centre enabled when looking at Apple's Mac developer centre, and this does seem confirmed by the profile, when opened in a text editor, containing:
    <key>com.apple.developer.game-center</key>
    <true/>


    Removing the entitlement before codesigning lets it upload with no problem. But of course Apple will just reject that. Does anyone else have a similar or related problem, or a solution?
     
  2. gclsoft

    gclsoft

    Joined:
    Sep 20, 2013
    Posts:
    5
    The problem, how do you solve it?
     
  3. SomeAlexander

    SomeAlexander

    Joined:
    Feb 24, 2013
    Posts:
    18
    Finally I found solution... Just add your embedded.provisionprofile to Content folder. You can create and download provision profile in Apple developer console.
     
    Felizolinha likes this.
  4. Felizolinha

    Felizolinha

    Joined:
    Dec 28, 2017
    Posts:
    1
    Thanks! This solution worked perfectly!
     
  5. JamieLanger

    JamieLanger

    Joined:
    Apr 10, 2019
    Posts:
    3
    Thanks somealexander for your response. It's useful.