Chris Patterson
Find me on:
  • Home
  • My Apps
  • Mobile Dev Blog
  • Resume
  • Nova

Error uploading app to iTunes Store in Mountain Lion/Xcode 4.4

8/2/2012

 
So I was submitting my first iOS app to the App Store after upgrading to OS X 10.8 Mountain Lion and Xcode 4.4, and all was well until the very last step of the submission process...

My app had successfully passed validation via the "Validate..." button in the Organizer window, but when I tried to submit it to the App Store, I got the dreaded, unhelpful error message:

"An error occurred uploading the app to the iTunes Store".

No explanation, nothing else to diagnose the problem. Same thing occurred using the Application Loader. A little googling provided a clue -- this Stack Overflow question pointed to an incompatiblity with the current version of Java for OS X, but it referred to Java 1.5 running on Lion.

With this clue, I opened up the Java Preferences app (in your /Application/Utilities folder) and found this:
Picture
Mountain Lion Java Preferences app -- default settings -- causes App Store uploads to fail in Xcode 4.4.
I simply rearranged the order to prefer Java SE 6 (1.6 64-bit) first over Java SE 7 (1.7 64-bit), as shown below:
Picture
I then retried my App Store submission. It worked! Apparently Apple needs to update Application Loader to work with Java 1.7 on 10.8.

Hope this tip helps someone else who ran into this problem...

    Archives

    October 2017
    August 2012
    July 2012

    Categories

    All
    Indycocoaheads
    Presentation
    Wwdc2012
    Xcode

    RSS Feed