Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
214 views
in Technique[技术] by (71.8m points)

Launch Screen not working on iOS 14 with Xcode 12

I am very frustrated now. I upgraded Xcode to version 12 and tested my app on iOS 14. Now the problem is, that my launch screen is just showing in black. I tested it with an iOS 13.5 device and it is still working as expected. I tried to remove the launchscreen.storyboard approach and added the Launch Screen key in the info.plist, but then the image is scaled to full size.

Now I tested a little bit with the launchscreen.storyboard and I found a few things.

  • If I remove the Image view, the launch screen is showing as expected. I added just a label and that would work.
  • If I use an image from the system in the image view, it is working as well. It is just not working when I am using an image from the project.

Did you experience issues with iOS 14 and the storyboard approach?

If yes, how did you fix it?

question from:https://stackoverflow.com/questions/63978396/launch-screen-not-working-on-ios-14-with-xcode-12

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

A work around that seems to be working for me:

For a strange reason if I am downsizing the image then it is working fine. I had a full size image of dimension 2732x2732 and it didn't work. Reducing the dimension of the same image to 2400x2400 is working fine. I have tried with 2500x2500 and 2600x2600 but none worked.

Most importantly, every time I change the image I had to restart the simulator to reflect the updated image.

It didn't work on the real device yet. Like the simulator, I had to restart the device and then only it worked.

Not sure if it is something with the dimension/size of the image or with the reboot.

Further updates:

I uploaded the same build (with smaller image) to TestFlight and installed it on my device (basically updated from the previous version having large size image) and unfortunately the issue persisted :(

Now what I did is uninstalled the app and reinstalled it again from TestFlight. Issue still persisted.

Finally I had to delete the app, reboot my device and install the app again. This is when it worked fine.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...