Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

abcdefg12345

macrumors 6502
Original poster
Jul 10, 2013
281
86
I'm trying to upload a new version of my app to the mac app store however its showing
com.apple.developer.game-center
as an enabled entitlement even though its disabled in the project, and the app got rejected for it being enabled, how do i disable something that is already disabled?

Screen Shot 2016-02-25 at 4.18.22 PM.png
Screen Shot 2016-02-25 at 4.18.40 PM.png
 

briloronmacrumo

macrumors 6502a
Jan 25, 2008
538
348
USA
...however its showing as an enabled entitlement even though its disabled in the project
Items to check first:
  • Make sure the TARGET ( not just the Project ) has this entitlement turned off
  • Edit the .entitlements file ( either in Xcode or in a standalone editor - TextWrangler etc. ) directly and remove the key
  • A double Clean of the project ( Product menu>>>Clean and Product menu option key >>>Clean ) is always a good idea.
 

abcdefg12345

macrumors 6502
Original poster
Jul 10, 2013
281
86
Items to check first:
  • Make sure the TARGET ( not just the Project ) has this entitlement turned off
  • Edit the .entitlements file ( either in Xcode or in a standalone editor - TextWrangler etc. ) directly and remove the key
  • A double Clean of the project ( Product menu>>>Clean and Product menu option key >>>Clean ) is always a good idea.

tried that and it didn't work, i also tried making a new project with the same name and id and got the same issue when tried to submit binary. apple told me to try and remove the entitlement manually from the archive but i have no idea how to do that.
 

briloronmacrumo

macrumors 6502a
Jan 25, 2008
538
348
USA
apple told me to try and remove the entitlement manually from the archive but i have no idea how to do that.
If the .entitlement file is changed external to Xcode ( just find the file in your project while in the Finder ), Xcode should pick it up. For a comparision, here is what one of my entitlement files looks like while being edited by TextWrangler:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.security.app-sandbox</key>
    <true/>
    <key>com.apple.security.files.user-selected.read-write</key>
    <true/>
    <key>com.apple.security.network.client</key>
    <true/>
    <key>com.apple.security.print</key>
    <true/>
</dict>
</plist>
Presumably editing this way is what Apple meant. Who did you talk to anyway? It should be someone in Developer Technical Services via your paid Apple developer ID. Otherwise it's difficult to ascertain what level of help you're getting. Maybe post Apple's reply.
 

abcdefg12345

macrumors 6502
Original poster
Jul 10, 2013
281
86
If the .entitlement file is changed external to Xcode ( just find the file in your project while in the Finder ), Xcode should pick it up. For a comparision, here is what one of my entitlement files looks like while being edited by TextWrangler:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.security.app-sandbox</key>
    <true/>
    <key>com.apple.security.files.user-selected.read-write</key>
    <true/>
    <key>com.apple.security.network.client</key>
    <true/>
    <key>com.apple.security.print</key>
    <true/>
</dict>
</plist>
Presumably editing this way is what Apple meant. Who did you talk to anyway? It should be someone in Developer Technical Services via your paid Apple developer ID. Otherwise it's difficult to ascertain what level of help you're getting. Maybe post Apple's reply.

Managed to fix it by signing into member centre and enabling then disabling game centre entitlement on mac app ids, then i went to Xcode preferences and downloaded all provisioning profiles then i tried uploading the same archive and the entitlement got disabled by itself, so the problem wasn't with the project itself, something else was bugged in my developer id.

Who did you talk to anyway?
when an app gets rejected there is a place in iTunes connect where you can talk to the people who rejected it thats who i talked to.
 

Suboptimizer

macrumors newbie
Feb 14, 2020
1
0
Thanks for providing the solution, it saved me a lot of time in troubleshooting. In my case it was a Mac app where the GameCenter for Mac was incorrectly activated on the developer portal. Unfortunately, I also have to delete all provisioning profiles in the portal, then remove them from Xcode and then generate new ones in the portal and integrate them into Xcode.

Unbelievable how hard it is to get your app into the Apple store. With my little Safari App extension the troubleshooting took longer than the development of the app itself...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.