Xcode app submission showing extra entitlement

Discussion in 'Mac Programming' started by abcdefg12345, Feb 24, 2016.

Tags:
  1. abcdefg12345 macrumors regular

    abcdefg12345

    Joined:
    Jul 10, 2013
    #1
    I'm trying to upload a new version of my app to the mac app store however its showing
    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
     
  2. briloronmacrumo macrumors 6502

    briloronmacrumo

    Joined:
    Jan 25, 2008
    Location:
    USA
    #2
    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.
     
  3. abcdefg12345 thread starter macrumors regular

    abcdefg12345

    Joined:
    Jul 10, 2013
    #3
    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.
     
  4. briloronmacrumo macrumors 6502

    briloronmacrumo

    Joined:
    Jan 25, 2008
    Location:
    USA
    #4
    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.
     
  5. abcdefg12345 thread starter macrumors regular

    abcdefg12345

    Joined:
    Jul 10, 2013
    #5
    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.

    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.
     
  6. briloronmacrumo macrumors 6502

    briloronmacrumo

    Joined:
    Jan 25, 2008
    Location:
    USA
    #6
    Thanks for posting your solution process; similar issues have given me fits in the past.
     

Share This Page