I am trying to submit my first app to the App Store but when I try I am getting the following error:
ERROR ITMS-9000: "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 UILaunchImage 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.
I'm using SDK 8.1. Deployment target is 8.0. Launch images are set by storyboard launch screen file. There is no obsolete launch screen images and I don't plan to add them because target system is iOS 8+.
What is wrong? Xcode version 6.1 (6A1052d).
Does your app support iOS7 or previous? That's the issue. In that case you have to provide the splash screen as PNG files for iOS7.
LaunchScreen.xib or LaunchScreen.storyboard only works with iOS8 onwards.
Further information here: http://oleb.net/blog/2014/08/replacing-launch-images-with-storyboards/
With iOS 8, you can now provide an Interface Builder document and, at runtime, have the OS generate all of the necessary Launch Images for you.
Here is what worked for me after getting mad for 2 days:
<key>UILaunchImages</key>
<array>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>7.0</string>
<key>UILaunchImageName</key>
<string>Default-568h</string>
<key>UILaunchImageOrientation</key>
<string>Portrait</string>
<key>UILaunchImageSize</key>
<string>{320, 568}</string>
</dict>
</array>
Points To Ponder
Screenshot
Rename storyboard launch screen file to 'LaunchScreen.storyboard'.
If you create a new Launch Screen file using File -> New -> File, Xcode will default the name to 'Launch Screen.storyboard'.
However, the default name specified in your Info.plist when creating a new project is 'LaunchScreen.storyboard' without the space.
I had this same error when trying to submit when I was NOT using a launch screen xib file. I had all the right image assets at the right dimensions but still no.
I found this post where a chap had the same issue and ended up using a 568x320 file as indicated in the error. I tried the same but this didn't work for me.
In the end, as my app is for iOS8 only, I used a xib file and the app submitted successfully.
This issue happens because you don't add launch image whose size is 640x1136 (iphone 5) correctly.
After editing Contents.json below, I can upload to iTunesConnect normally
{
"images" : [
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "splash-480h.png",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "[email protected]",
"extent" : "full-screen",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "[email protected]",
"extent" : "full-screen",
"subtype" : "retina4",
"scale" : "2x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "736h",
"filename" : "[email protected]",
"minimum-system-version" : "8.0",
"orientation" : "portrait",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "736h",
"filename" : "[email protected]",
"minimum-system-version" : "8.0",
"orientation" : "landscape",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "667h",
"filename" : "[email protected]",
"minimum-system-version" : "8.0",
"orientation" : "portrait",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"filename" : "[email protected]",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "retina4",
"filename" : "[email protected]",
"minimum-system-version" : "7.0",
"orientation" : "portrait",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With