views:

848

answers:

4

I get the following error when I try to upload the application on iTunes Connect:

"Binary file names cannot contain a space. Please rename your binary file and try again."

If I try to Validate the Application in XCode, I get: "My Application.ipa: filename may not contain whitespace"

So I guess I have to find a way to rename this .ipa file. I don't want to change my product name which has to stay "My Application". How can I do that?

Thanks!

+1  A: 

Quick note: I wasn't able to replicate your error, so I haven't tested this solution yet. Because of this, I would recommend you back up your .xcodeproj file before trying this, just in case.

First select your Application's target in the Xcode organizer and open the inspector (command-i). Select the Build tab and search for "Product Name". Change it to MyApplication (or whatever you want the binary to be called). That value won't be displayed to the user, and cannot contain any spaces.

Now open the Info.plist file for your application and find the "Executable file" key. Change it's value to whatever you set the product name to in the previous step. Set the "Product name" key to your applications name, with spaces.

Build and Run. The simulator should display the name with spaces on the homescreen, but the compiled executable filename will not contain spaces.

Carter Allen
Carter, Im a bit confused. You mention Product name twice. Once you say to set it WITH white spaces, and another time without. Can you clarify?Gonso
gonso
+1  A: 

I just had to rename the zip file before uploading it in the web interface. This is really silly...

Kamchatka
A: 

There's no need to change anything in XCode. Just rename the resulting .zip File from "My Application.zip" to "My_Application.zip". This does not affect your application name its just a way to bypass the Application Loader filename checks (which do not allow whitespaces in the uploaded zip filename).

My_Application.zip should be fine

Colins
A: 

I have the same problem. Where is the .zip folder?

kjfluke