Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to get rid of "An iPhone Retina (4-inch) launch image for iOS 7.0 and later is required" error

Tags:

xcode

ios

xcode7

I'm designing an iOS app and am trying to add launch screens. Although I'm only supporting iOS 9.0 and later, I've added launch screen for iOS 6.0 and later. Despite this, for some reason I'm still getting the following error:

"An iPhone Retina (4-inch) launch image for iOS 7.0 and later is required"

When the add the pictures and save, the error temporarily goes away. But when I run the app on any device (through Simulator), the error comes back. Also, no launch screen shows.

YES, I know there are several threads on Stackoverflow (examples given at the end) mentioning this error. I've looked through them and the don't help me because they were either for an older version of Xcode, or the problem wasn't exactly as the one I have.

I am using Xcode 7.3.1 with Swift 2.2

enter image description here

enter image description here

Examples of other threads with similar issues:

XCode iOS7 Asset Catalog Warning - Only Supporting iOS8

How do I clear a warning for xcassets unassigned children?

Adding iOS 7 version of iPhone 4-inch launch image to project breaks launch image when run on iOS 7

"Missing retina 4-inch launch image" error, but I I have that image

Missing Retina 4 launch image. How to ignore this error?

like image 344
Ahmad Avatar asked Jul 24 '16 21:07

Ahmad


1 Answers

You have selected the configuration for the "Universal" devices but not added any image for iPhone for iOS 7 and later.

You can do this two things to get rid of this error:-

  1. If you are aiming to deploy the app for iOS 8 and / or iOS 9 and later, just select the iOS 8 and later in the properties of "Brand Assets-2". By this you can solve this error.

  2. If you want to keep this app for iOS 7, then just select the "Portrait" mode in iOS 7 and later and insert image into it.

By this two ways you can get rid off to your error.

Happy Coding!

like image 178
Nirmit Dagly Avatar answered Nov 07 '22 09:11

Nirmit Dagly