How to fix Xcode Validation Error: “Your binary is not optimized for iPhone 5”

Olivia Chang
Aug 8, 2017 · 1 min read

I recently ran into this error while archiving my app for upload to iTunes Connect. For these fixes, you will need to have your launch screen images. You can either generate them at appicon.build (an awesome website, by the way) or use a black screen.

Fix #1: Add “Default-568h@2x.png” to your root directory

Source: https://stackoverflow.com/questions/23780432/xcode-error-while-validation-your-binary-is-not-optimized-for-iphone-5

Fix #2:

Navigate to your Xcode target > Images.xcassets > LaunchImage > On the panel at the right, enable iOS 6.0 and prior > iPhone portrait.

Source: http://dannysu.com/2014/04/16/not-optimized-for-iphone5/

Fix #3:

Remove all your launch screen assets, clean your project, close Xcode, open it up again, and build your app with an iPhone 5 simulator. Then add your launch images back into Images.xcassets > LaunchImage.

Source: https://github.com/facebook/react-native/issues/3698

Happy coding!

react.coach

All things React Native, and some other stuff too.

Olivia Chang

Written by

Developer, designer, student, and nerd. https://oliviachang.me

react.coach

All things React Native, and some other stuff too.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade