Xcode error while validation - “Your binary is not

2019-01-10 20:43发布

Just got stuck with this error while I'm trying to publish an app to app store. Sorry because i cant copy-paste the error code so I will post an image in my question.

enter image description here

12条回答
地球回转人心会变
2楼-- · 2019-01-10 21:02

In response to this closed question (https://stackoverflow.com/questions/25699733/invalid-binary-your-binary-is-not-optimized-for-iphone-5) ...

One solution is that you need to use Xcode 5.1.1 per Apple http://developer.apple.com/news/?id=04252014a "Starting May 15, 2014, new apps and app updates submitted to the App Store must be built with Xcode 5.1.1."

查看更多
仙女界的扛把子
3楼-- · 2019-01-10 21:07

I have been getting this issue since last two days.

I found this issue in my splash images. I made a mistake by converting .jpeg images to .png format and then adding the images to Launch images. That is the reason for the frequently appearing error message on submitting an app to itunes.

To rectify this issue, I took new images in .png format from Photoshop and added them to Launch Images.

After that, I tried to submit the app and it got submitted successfully .

This method be helpful for other.

查看更多
我只想做你的唯一
4楼-- · 2019-01-10 21:08

Are you sure the 568h file is actually in PNG format? Also make sure that you provided support for iphone 5 for all your screens? Only adding Default-568h@2x.png is not gaurantee for iphone 5 support. You have to check for framing of all your view for iphone 3.5" and 4" device.

You can do the framing by code or autoresizing that is other thing.

Kindly check out this link: Your binary is not optimized for iPhone 5

查看更多
贼婆χ
5楼-- · 2019-01-10 21:11

I was also suffering from same problem and found solution as described in steps:- 1) I have moved all default png's to the root of my project. 2) Added another Default-568h of size {320,568} to the root.

I have only four files at my root:- Default-568h.png {320,568} , Default-568h@2x.png {640,1136} , Default.png {320,480} , Default@2x.png {640,960}.

The above solution works for me without adding UILaunchImages key in .plist.

查看更多
霸刀☆藐视天下
6楼-- · 2019-01-10 21:14

For Xcode 6

you must make sure you check in iOS 6 and prior sizes in both LaunchImages and AppIcon in Images.xcassets

Please have a look here I have answer this question before Xcode 6 error msg "Targeting releases prior to iOS 7.0 ..."

查看更多
淡お忘
7楼-- · 2019-01-10 21:15

I just selected: "Don't use asset catalogs" and then add screenshots photo into: Supporting Files.

enter image description here

查看更多
登录 后发表回答