How to fix Xcode Validation Error: “Your binary is not optimized for iPhone 5”
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

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!

