简体   繁体   English

无效的二进制文件-iPhone应用程序提交

[英]Invalid Binary - iphone app submission

Receiving this error after submission to Apple saying my binary is invalid. 提交给Apple后说我的二进制文件无效,收到此错误。

Invalid File Name - Your package contains a file ' .app/FBUserSettingsViewResources.bundle' with a name that contains invalid characters. 无效的文件名-您的程序包包含文件'.app / FBUserSettingsViewResources.bundle', 名称中包含无效字符。 Avoid using control characters in the file names. 避免在文件名中使用控制字符。 Invalid File Name - Your package contains a file ' .app/es.lproj/RematchButton@2x.png' with a name that contains invalid characters. 无效的文件名-您的程序包包含文件' .app / es.lproj / RematchButton @ 2x.png',其名称包含无效字符。 Avoid using control characters in the file names. 避免在文件名中使用控制字符。 Invalid File Name - Your package contains a file ' .app/VU.png' with a name that contains invalid characters. 无效的文件名-您的程序包包含文件' .app / VU.png' ,其名称包含无效字符。 Avoid using control characters in the file names. 避免在文件名中使用控制字符。

it appears that the error is with the space before the ".app' in each path. 似乎错误在于每个路径中“ .app”之前的空格。

Any ideas how to fix? 任何想法如何解决?

Thanks! 谢谢!

Check the path for these images. 检查这些图像的路径。

It sounds like you might have added the images from another application's .app directory. 听起来您可能已经从其他应用程序的.app目录添加了图像。 When you add an image to your project check the box that says "Copy". 将图像添加到项目时,请选中“复制”框。

To check the location of the images: Select the Image on the left in Xcode and select the "File Inspector" on the right. 要检查图像的位置:在Xcode中选择左侧的图像,然后在右侧选择“文件检查器”。 You want the images to be located within the same directory as your project. 您希望图像与项目位于同一目录中。

I can't remember the exact scenario, but I've had something similar happen to me in the past. 我不记得确切的情况,但过去我也经历过类似的事情。 I think I resolved it by removing the troublesome files from Build Phases>Copy Bundle Resources then re-adding them to the project. 我想我通过从“构建阶段”>“复制捆绑资源”中删除麻烦的文件,然后将它们重新添加到项目中来解决了该问题。 Not ideal, but it seemed to work! 并不理想,但似乎可行!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM