Question

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!

Was it helpful?

Solution

This works very well (taken from here: http://developer.appcelerator.com/question/82971/filename-may-not-contain-whitespace-in-xcode-325-is-back):

1) In Xcode Organizer right click on the build date of the app and select "Reveal Archived App in Finder"

2) Open ArchiveInfo.plist in a text editor (i used Coda)

3) For me at line 12 it was creating the application with a space:

  <key>XCApplicationName</key>
  <string>Example Name</string>

Change that to ExampleName and save the file.

4) Once you get back to Xcode Organizer, you should be able to go through fine.

OTHER TIPS

Since Xcode or the Application Loader is the only way to submit apps now, renaming the file before using the web interface isn't an option.

However, there is a workaround. From Xcode Organizer, choose Save to Disk, pick a file name without a space, and then use Application Loader (not the Xcode Organizer) to send the archive to Apple.

I ran into this and another issue when I wanted to submit an app with whitespace and a + in the name.

Application Loader did not work well for me - cryptic errors that required deleting the IPA and rebuilding.

My final solution was to set the PRODUCT_NAME to something sane, e.g. instead of My App+ it was MyAppPro. Then I set CFBundleDisplayName in Info.plist to the name I wanted, e.g. My App+.

This is in my opinion a better solution than renaming the IPA every time and using Application Loader.

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

Use Xcode 4.

The problem is solved in this version.

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

I was able to use the Organizer, select Share, Save to disk. The went to the file and told Finder to open it with Application Loader v1.4. This is with XCode 3.2.5. I've previously used Application Loader to upload apps to the Mac app store.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top