本文介绍了iOS 10启动画面错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的设备和模拟器似乎正在为我的应用程序缓存启动屏幕!

My Device and Simulator seem to be caching the launch screen for my app!

我已经删除了原始的Launch Screen.storyboard,并创建了自己的XIB和swift文件,分别为"StartingPointView.xib"和"StartingPointView.Swift". XIB文件包含具有蓝色背景色的视图.它也链接在应用程序图标和启动图像下的Xcode项目设置中.

I have deleted the original Launch Screen.storyboard and created my own XIB and swift files called "StartingPointView.xib" and "StartingPointView.Swift". The XIB file contains a view with Blue background color. It is also linked in the Xcode project settings under app icon and launch images.

到目前为止,一切似乎都很好,但是当我将StartingPointView的视图的颜色更改为黄色"时,该应用将继续以蓝色屏幕启动,然后闪烁黄色屏幕.

So far everything seems fine, but when I change the color of the StartingPointView's view to say Yellow, the app continues to launch with a Blue screen and then flash a yellow screen.

蓝色是哪里来的? (注意:我的用户界面中都没有其他蓝屏,我尝试运行干净且干净的构建文件夹)

Where is the blue coming from? (Note: I have no other blue screens in any of my UI and I tried running clean and clean build folder)

推荐答案

此问题与 rdar://直接相关24618582 自iOS 9以来就存在的"Xcode 7.2.1:缓存的启动屏幕未更新".

This issue is directly related to rdar://24618582 "Xcode 7.2.1: Cached Launch Screen Does Not Update" which has existed since iOS 9.

我发现的唯一解决方法是完全删除并重新安装您的应用程序.我知道这不是一个切实可行的解决方案,但是这是我能提供的最好的解决方案(除了重新启动设备),直到Apple修复此运行时问题为止.

The only workaround that I've found is to completely remove and re-install your application. I know this isn't really viable solution, but is the best that I can provide (besides restarting the device) until Apple fixes this runtime issue.

这篇关于iOS 10启动画面错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 14:34