Published on
Adding a new post from my Weebly app from the plane BOS ✈️ IND to see if my micro.blog integration is working...
Published on
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...
Published on
Here is my presentation for the July 2012 Indy CocoaHeads meeting, in PDF and Keynote formats.
if (!window.scribd_js_loaded) { window.scribd_js_loaded = true; document.write(""); } var scribd_doc_98892610 = scribd.Document.getDoc(98892610, "key-12v5kwgn6nkmoe0k4l5q"); scribd_doc_98892610.addParam("jsapi_version", 1); scribd_doc_98892610.addParam("height", 500); scribd_doc_98892610.write("doc_98892610"); indycocoaheads-july-2012.pdfFile Size: 8713 kbFile Type: pdfDownload File indycocoaheads_july_2012.keyFile Size: 6669 kbFile Type: keyDownload File