binary not optimized for iPhone 5 - using xib not images

Hi,


I got error for app submision.


Submitting through Xcode 6.4


ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320, 568}. 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' at......"



1) we are not using any image for luanch, using xib file for that.


2) I already submitted this app couple months ago and no issues with this.



Apple bug?


I tried to add the following to info.plist:


<key>UILaunchImages</key>

<array>

<dict>

<key>UILaunchImageMinimumOSVersion</key>

<string>7.0</string>

<key>UILaunchImageName</key>

<string>Default-568</string>

<key>UILaunchImageOrientation</key>

<string>Portrait</string>

<key>UILaunchImageSize</key>

<string>{320, 568}</string>

</dict>

</array>

---- Still same error.


in project:

General:

-- App icons and Launch Images:

Launch Images Source -> LaunchImage

Launch Screen File -> LaunchScreen

(LaunchScreen is xib file)

added couple images in Images.xcassets under LaunchImage set for iphone

--- Still Same error

Any input, idea how to solve this?

Replies

Why not just go ahead and supply a launchimage and get things moving....

I experienced this problem, but I used part of Marijan's description as a hint.



The description from "Application Loader" was confusing, as it appears that all of these dictionary entries are needed.


<array>
                <dict>
                        <key>UILaunchImageMinimumOSVersion</key>
                        <string>7.0</string>
                        <key>UILaunchImageName</key>
                        <string>Default-568</string>
                        <key>UILaunchImageOrientation</key>
                        <string>Portrait</string>
                        <key>UILaunchImageSize</key>
                        <string>{320, 568}</string>
                </dict>
        </array>


As well, you need to be sure your file is named properly, and be sure it is copied over in the build phase.

That is, verify in "Targets" > "Build Phases" > "Copy Bundle Resources" your file is copied over.

Default-568.png



  • Notes — I did not use Media.xcassets as I had inheirited an older project that did not utilize this.
  • I did notice that if you create a new project the above dictionary gets made, so it would only be a problem if you had a project with a longer "legacy".
  • I hope this helps someone else in the future.