Reputation: 543
I'm trying to upload an iPhone app binary to iTunesConnect and keep getting the following error message "The binary you upload was invalid. the file was not a valid zip file". I had an app upload ok recently but this app is having problems. So after a while I carefully went through the following steps trying to make sure everything was ok. Any help is appreciated.
The steps:
renamed the project (Project->Rename... enter name into Rename project to:) to release name making sure the name has no spaces.
Cleaned project
Builds, Installs and Runs on actual iPhone: To me this implys App and developer ID's are OK.
Create a distributor provisioning profile using existing Distributer ID.
Upload to iTunes connect
Gives "The binary you uploaded was invalid. The file was not a valid zip file"
Upvotes: 1
Views: 1934
Reputation: 1347
NTFS (New Technology File System) is a windows format. You may like to read this: https://en.wikipedia.org/wiki/NTFS
Now if you will have a NTFS format iTunes will not recognize that format. And iTunes will support or recognize mac extended versions.
So try not to use NTFS or FAT format for ziping up the projects.
Regards
Rajeev
Upvotes: 0
Reputation: 543
Thanks for the help. It turned out the problem was to do with the fact my project folder was on an ntfs HD. As an experiment I copied it onto my macs HD and it worked perfectly. I don't really understand why this is.
Upvotes: 0
Reputation: 113777
Here's some additional steps I try: Quit Xcode after clean (or clean all) then delete the Build folder. I don't "Build and Go", just "Build". The AppName.app is generally in the "App Store" folder (or whatever you name your build configuration for App Store release. I right click only that AppName.app file and choose "Compress" in the Finder.
You could also try uploading it with Safari.
It seems like your problem isn't with the provisioning profiles, but with the way the file is being zipped (or maybe uploaded). Try repeating that part, changing details.
Upvotes: 1