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).
Here is what worked for me after getting mad for 2 days:
Points To Ponder
Screenshot
I'm using React Native, and got this problem after adding react-native-splash-screen plugin
However, I got the solution after following the method via this link
Your binary is not optimized for iPhone 5
The problem has solved when I do this:
and this time its successfuly submitted.
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/
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.
If you refer to https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/LaunchImages.html it says that iPhone 6(plus) require launch XIB or storyboard file.
And if you have a look here https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html#//apple_ref/doc/uid/TP40006556-CH27-SW2 it refers the image sizes and never explicitly says that iPhone 5 can handle a launch file (I know it also does not say that it doesn't). At least iPhone 4s looks like it does not, so I guess that iPhone 5 doesn't either and you have to add a static file.
For the lost Xamarin souls here, I had this issue by using an images xcassets called Images.xcassets under the Resources folder.
I create it from scratch, name it Media.xcassets as it comes from default, and under the root folder, not Resources. And it works. :/