Search code examples
iphoneiosios6xcode4.5uploading

Xcode 4.5 iOS 6 error uploading to itunes


I have recently upgraded to XCode 4.5 and have been trying to release a new version of my app. I went to the itunes connect portal and prepared it for upload. I changed the version numbers in my bundle. Now I archive it, and validate it. No problems here.

The problem is when I try to distribute it I get this error An error occured uploading to the itunes store

Before you rip this question appart, I have already tried these fixes here, here, and by using the application loader

I am out of ideas. I really need to get this update out and I have no idea why I am getting this error. If anyone else has had this problem, especially with xcode 4.5 (which seems to have started this problem in the first place) please let me know


Solution

  • Ok, so I finally solved my problem. It is Java related as many of the other answers suggest, however their solutions didn't work for me. I got some help from this Apple Forum

    That solution still did not work for me though, so I did a slight workaround by just moving the virtual machine file. You could always move it back when you're done.

    sudo mv -f /Library/Java/JavaVirtualMachines/1.7*jdk ~
    

    You can confirm that this worked by checking the current java version

    java -version
    

    Which should give you 1.6.x. This should fix the problem. Also note I still used Application Loader 2.7 to do this (Although I bet it would have worked either way).