How do I change my iPhone App binary filename

北战南征 提交于 2019-11-30 10:25:06

问题


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:


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.




回答2:


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.




回答3:


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.




回答4:


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




回答5:


Use Xcode 4.

The problem is solved in this version.




回答6:


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




回答7:


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.



来源:https://stackoverflow.com/questions/3035081/how-do-i-change-my-iphone-app-binary-filename

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!