I get the following error when I try to upload the application on iTunes Connect:
当我尝试在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"
如果我尝试在XCode中验证应用程序,我得到:“我的应用程序。ipa:文件名可能不包含空格”
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?
所以我想我必须找到一种方法来重命名这个。ipa文件。我不想更改我的产品名称,它必须保留为“我的应用”。我怎么做呢?
Thanks!
谢谢!
7 个解决方案
#1
48
This works very well (taken from here: http://developer.appcelerator.com/question/82971/filename-may-not-contain-whitespace-in-xcode-325-is-back):
这个功能非常好(从这里开始:http://developer.appcelerator.com/question/82971/ fil珐琅-may-not- contain-xcode -325-is-back):
1) In Xcode Organizer right click on the build date of the app and select "Reveal Archived App in Finder"
1)在Xcode Organizer中右键点击app的构建日期,选择“在Finder中显示归档app”
2) Open ArchiveInfo.plist in a text editor (i used Coda)
2)ArchiveInfo开放。文本编辑器中的plist(我使用了Coda)
3) For me at line 12 it was creating the application with a space:
3)对我来说,在第12行,它正在创建一个带有空格的应用程序:
<key>XCApplicationName</key>
<string>Example Name</string>
Change that to ExampleName and save the file.
将其更改为ExampleName并保存文件。
4) Once you get back to Xcode Organizer, you should be able to go through fine.
4)一旦你回到Xcode Organizer,你应该能过得很好。
#2
6
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.
由于Xcode或应用程序加载程序是目前提交应用程序的唯一方式,因此在使用web界面之前重命名文件不是一个选项。
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.
然而,有一个变通的办法。从Xcode Organizer中,选择Save to Disk,选择一个没有空格的文件名,然后使用Application Loader(而不是Xcode Organizer)将归档文件发送给苹果。
#3
4
I ran into this and another issue when I wanted to submit an app with whitespace and a +
in the name.
当我想提交一个名称中有空格和a +的应用程序时,我遇到了这个和另一个问题。
Application Loader did not work well for me - cryptic errors that required deleting the IPA and rebuilding.
应用程序加载程序不能很好地处理me——需要删除IPA并重新构建的隐式错误。
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+
.
我的最终解决方案是将PRODUCT_NAME设置为理智的,例如,不是我的App+而是MyAppPro。然后在Info中设置CFBundleDisplayName。找到我想要的名字,例如,My App+。
This is in my opinion a better solution than renaming the IPA every time and using Application Loader.
在我看来,这是比每次重命名IPA和使用应用程序加载程序更好的解决方案。
#4
3
I just had to rename the zip file before uploading it in the web interface. This is really silly...
我只需重命名zip文件,然后将其上传至web界面。这真的是愚蠢的…
#5
2
Use Xcode 4.
使用Xcode 4。
The problem is solved in this version.
这个问题在这个版本中得到了解决。
#6
0
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).
在XCode中不需要更改任何内容。只需将结果的.zip文件重命名为“我的应用程序”。zip”到“My_Application.zip”。这不会影响您的应用程序名,它只是绕过应用程序加载程序文件名检查的一种方式(在上传的zip文件名中不允许白空间)。
My_Application.zip should be fine
My_Application。邮政应该没事的
#7
0
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.
我可以使用组织者,选择共享,保存到磁盘。进入文件并告诉查找程序使用Application Loader v1.4打开它。这是XCode 3.2.5。我之前使用过应用加载程序将应用程序上传到Mac应用程序商店。
#1
48
This works very well (taken from here: http://developer.appcelerator.com/question/82971/filename-may-not-contain-whitespace-in-xcode-325-is-back):
这个功能非常好(从这里开始:http://developer.appcelerator.com/question/82971/ fil珐琅-may-not- contain-xcode -325-is-back):
1) In Xcode Organizer right click on the build date of the app and select "Reveal Archived App in Finder"
1)在Xcode Organizer中右键点击app的构建日期,选择“在Finder中显示归档app”
2) Open ArchiveInfo.plist in a text editor (i used Coda)
2)ArchiveInfo开放。文本编辑器中的plist(我使用了Coda)
3) For me at line 12 it was creating the application with a space:
3)对我来说,在第12行,它正在创建一个带有空格的应用程序:
<key>XCApplicationName</key>
<string>Example Name</string>
Change that to ExampleName and save the file.
将其更改为ExampleName并保存文件。
4) Once you get back to Xcode Organizer, you should be able to go through fine.
4)一旦你回到Xcode Organizer,你应该能过得很好。
#2
6
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.
由于Xcode或应用程序加载程序是目前提交应用程序的唯一方式,因此在使用web界面之前重命名文件不是一个选项。
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.
然而,有一个变通的办法。从Xcode Organizer中,选择Save to Disk,选择一个没有空格的文件名,然后使用Application Loader(而不是Xcode Organizer)将归档文件发送给苹果。
#3
4
I ran into this and another issue when I wanted to submit an app with whitespace and a +
in the name.
当我想提交一个名称中有空格和a +的应用程序时,我遇到了这个和另一个问题。
Application Loader did not work well for me - cryptic errors that required deleting the IPA and rebuilding.
应用程序加载程序不能很好地处理me——需要删除IPA并重新构建的隐式错误。
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+
.
我的最终解决方案是将PRODUCT_NAME设置为理智的,例如,不是我的App+而是MyAppPro。然后在Info中设置CFBundleDisplayName。找到我想要的名字,例如,My App+。
This is in my opinion a better solution than renaming the IPA every time and using Application Loader.
在我看来,这是比每次重命名IPA和使用应用程序加载程序更好的解决方案。
#4
3
I just had to rename the zip file before uploading it in the web interface. This is really silly...
我只需重命名zip文件,然后将其上传至web界面。这真的是愚蠢的…
#5
2
Use Xcode 4.
使用Xcode 4。
The problem is solved in this version.
这个问题在这个版本中得到了解决。
#6
0
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).
在XCode中不需要更改任何内容。只需将结果的.zip文件重命名为“我的应用程序”。zip”到“My_Application.zip”。这不会影响您的应用程序名,它只是绕过应用程序加载程序文件名检查的一种方式(在上传的zip文件名中不允许白空间)。
My_Application.zip should be fine
My_Application。邮政应该没事的
#7
0
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.
我可以使用组织者,选择共享,保存到磁盘。进入文件并告诉查找程序使用Application Loader v1.4打开它。这是XCode 3.2.5。我之前使用过应用加载程序将应用程序上传到Mac应用程序商店。