Problem Archiving & Validating in Xcode

Discussion in 'Technical Discussion' started by Phill Mason, Nov 30, 2015.

  1. Phill Mason

    Phill Mason Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    880
    Likes Received:
    721
    Hey folks, wonder if anyone can offer a little Xcode assistance?
    I'm trying to prepare my first BB game in Xcode and the archive keeps failing.

    It says iTunes Store operation failed.
    Screen Shot 2015-11-30 at 22.21.26.png
    I've triple-checked the bundle ID and it's fine, so I'm stuck.

    Now when I set this game up in iTunes some 3 months back, it was called something different, so I changed the name because I haven't uploaded anything yet, but I cannot change the SKU, would this be causing me any issues?
     
  2. Kevin W

    Kevin W Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    368
    Likes Received:
    487
    Your Bundle ID is that number?
     
  3. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    Pretty sure that is not a valid Bundle Identifier (or not typical at least, and it's definitely an invalid format for Android). Typically the Bundle ID is something like "com.company.gamename" without the quotes.
     
    Kevin W likes this.
  4. Phill Mason

    Phill Mason Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    880
    Likes Received:
    721
    All okay now thank you.

    I can see in ITC that Xcode keeps on creating new ID's with the prefix XC and then my ID number which is what's been causing the error.

    There were about 3 ID which was most bizarre. So, I deleted all the auto-generated ID's and when I closed everything down and rebooted Xcode, I archived it, selected the correct bundle in the usual configuration "com.company.gamename" and it's validated okay.

    Xcode Gremlins I reckon.
    Thanks @Andy @Kevin W
     
    Kevin W likes this.
  5. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    Publishing on Apple is better than it used to be but far from perfect (or even consistent for that matter)!
     
  6. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    SKU is only for your records, that can be anything and Apple does not really care about that. Apple ID is what Apple gives you when you create a new app entry in iTunes Connect. Bundle ID is again what you give to your app, but it has certain rules, basically as @Andy mentioned it has that reverse DNS format like com.phillmason.yourgame -- that is what you need to feed to BB's bundle ID field...
     
  7. ajcoryat

    ajcoryat Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    241
    Likes Received:
    111
    @Phill Mason Hey Phill, what version of Xcode are you using? 6.4 or 7.x ?
    Presently, you should try and have both installed on your Mac.
    But unfortunately, automatic AppStore updates trashes 6.4 every time.
    Try building the binary with 6.4 (Archive), then open 7.x version and submit using the Organizer from 7.x
    This may solve your issue.
     
  8. Phill Mason

    Phill Mason Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    880
    Likes Received:
    721
    @ajcoryat I'm using Xcode 6.4, but all is okay now as per my post above, thanks mate.
     

Share This Page