Xcode – Can’t submit the app with storyboard launch images to the App Store: Your binary is not optimized for iPhone 5

ios8launchimagestoryboardxcodexcode6

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).

Best Answer

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.

Related Topic