INVALID BINARY : Your binary is not optimized for

2020-02-09 03:09发布

I had imported all 3 Launch Images First

1: 320 x 480    
2: 640 x 960 (Retina 3.5-inch)    
3: 640 x 1136 (Retina 4-inch)    

they have the following default names that are needed:

1:Default.png   
2:Default@2x.png   
3:Default-568h@2x.png   

and Get the rejection with the warning :

iPhone 5 Optimization Requirement - Your binary is not optimized for iPhone 5. As of May 1, all new iPhone apps and app updates submitted must support the 4-inch display on iPhone 5. All apps must include a launch image with the -568h size modifier immediately following the "basename" portion of the launch image's filename. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the iOS Human Interface Guidelines and iOS App Programming Guide.

Even after adding:

Default-568h.png  of  size  320 x 568  

then also get the rejection with the same Warning

Where is the problem in launch image NAME or in SIZE

14条回答
女痞
2楼-- · 2020-02-09 03:32

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.

查看更多
Lonely孤独者°
3楼-- · 2020-02-09 03:32

I had the same problem today and finally got it solved!

The problem originates from a localized -568h@2x Launch image.

Normally localization works well, but apparently Apple did a major screw-up with their iPhone5 optimization validation script and it isn't localization aware.

So what I did to fix it is copy any Default-568h@2x.png from one of the .lproj folders next to the lproj folders and add it to the target you are trying to compile/submit. This most likely will increase your package file by one unnecessary launch image (although compression should probably get rid of it) and will "trick" the validation script to rightfully accept your app binary.

查看更多
太酷不给撩
4楼-- · 2020-02-09 03:32

For iPhone 5 the image size will be 640 x 1136 pixels(@2x). Try this it will help you.

查看更多
The star\"
5楼-- · 2020-02-09 03:33

For those who are using AIR:
(v3.9 at least)

Air automatically generates the icons folder with this default structure and names:

project/icons
   │
   ├── android
   │   ├── icons
   │   └── ...
   │
   └── ios
       ├── icons
       ├── Default.png
       ├── Default@2x.png         // Should be rename to Default-568h@2x.png
       ├── Default-Landscape.png
       └── Default-Portrait.png

To solve this problem, Default@2x.png should be rename to Default-568h@2x.png.

查看更多
可以哭但决不认输i
6楼-- · 2020-02-09 03:35

If you localized launch images, you have to put launch images in every .lproj folder even if this .lproj folder was not added directly by you.

I encountered this problem. I am using appirater which provides many localizations (many .lproj folders are added into the target). However I only localized launch images for several languages I need. So my app was rejected because there were no launch images in some .lproj folders. The solution is simple. Removed unnecessary localizations or localize launch images for all languages.

There are detailed steps to resolve this issue caused by appirater on my blog. http://vinceyuan.blogspot.hk/2013/08/a-weird-reason-why-ios-app-is-rejected.html

查看更多
甜甜的少女心
7楼-- · 2020-02-09 03:38

Did you see how it iPhone 5 screen(on a device or simulator)? Try this

Name - Default-568h@2x.png

Size - 640 X 1136

查看更多
登录 后发表回答