Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Splash Screen not showing up on device - strange issue

I am making a test sprite kit game, and when I run it on the device, the splash screen doesn't show up although it does work on the simulator.

Here are some screenshots:

Declaring of splash screen properties in settings window

Normally I set the target to iOS 7.1 and later, so I use a .xib file and LaunchImage file in xcassets.

Here are the properties of the .xib file

I have put 2 correctly sized splash screens in the iPhone portrait iOS 7&8 section, and have selected "Portrait" under iOS 7 and later. The link from the settings file is definitely going to the correct file.

When I run it on the simulator (presumably all devices are iOS 8), the .xib file is used and it displays that splash screen.

When I run it on my iPhone 4, it displays a black screen. In my other apps, it would choose the image from xcassets and display it, but this is not the case.

Does anyone know how I could solve this problem?


Edit

Basically, I have put 4 images into xcassets for a splash screen. I have selected iPhone portrait for iOS 7 and iOS 8.

In the settings pane I deleted the launch screen file reference, so the only reference is to the xcassets launch image (It points to the correct place). I have also deleted the LaunchScreen.xib file.

But when I run the app on the device and the simulator, no splash screen shows up.

like image 406
13509 Avatar asked Apr 03 '15 17:04

13509


People also ask

How do I add a splash screen in Xcode?

Adding splash screen on iOS xcodeproj in Xcode. Then, drag the file BootSplash. storyboard under the Project directory in the Xcode file manager on the left side of the Xcode from the path ios/app-name/ directory. After dragging it, Xcode will prompt the following to create a folder reference.

Is splash screen mandatory iOS?

No, it is not required to set a launch image.


1 Answers

I faced similar issue and fixed by Restarting the Mac and iPhone

like image 158
Abhijith Avatar answered Oct 27 '22 04:10

Abhijith