自XCode7更新以来在设备上启动应用程序时出现黑屏 [英] Black screen when launching the app on device since XCode7 update

查看:210
本文介绍了自XCode7更新以来在设备上启动应用程序时出现黑屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经更新了XCode7,并且像每个人一样,我必须修改部分代码以与Swift2兼容.

I've updated XCode7 and like everyone, i have to amend a part of my code to be compliant with Swift2.

但是我有一个问题,当我在模拟器上测试应用程序时,我没有问题.但是,当我直接在我的真实设备(iPhone 5S IOS9)上尝试时,黑屏显示的只是电池电量.

But i have a problem, when i m testing the app on the simulator i have no problem. But when i m trying directly on my real device (Iphone 5S IOS9), a black screen displays just with the level of the battery.

我已经尝试了3天,以在stackoverflow上找到一些东西,但是似乎没有任何效果.

I have tried during 3 days to find something on stackoverflow, but nothing seems working.

该主题似乎是相同的问题,但实际上不起作用. > IOS 7启动图像,仅在设备上显示黑屏

This topic seems to be the same problem, but doen't work actually. IOS 7 launch image, displaying black screen on device ONLY

我已经遵循了主题 iOS 9黑色启动屏幕,但是没有.带来任何正确的解决方案

I' ve followed the topic iOS 9 Black Launch Screen but it doesn't bring any correct solution

任何想法或帮助将不胜感激.

Any idea, or help will be appreciated.

推荐答案

它为我工作:

您可以使用以下步骤解决此问题:

You can solve this problem using following steps :

  1. 首先选择项目的根级别,然后进入常规"选项卡,然后在块下面找到它.

  1. First select root level of project and then go in General tab and Find that below blocks.

默认情况下,在"启动图片来源"中显示"使用资产目录",然后单击它

By default, in "Launch images Source" it shows "Use assets catalogs", click on it

它将要求您"将启动图像迁移到资产目录",只需单击"迁移" .

It will ask you to "Migrate launch images to an asset catalog", simply click on "migrate".

现在,在启动屏幕文件" 中的同一块中,删除默认的启动屏幕xib或情节提要.因为我们不需要指定它.只是在那儿空白.

Now, In same block in "Launch Screen file", remove default launch screen xib or storyboard. because we don't need to specify it. Just put blank on there.

现在它在 *启动图像源"中显示"品牌资产" ,只需单击它的右侧箭头并设置所有应用启动屏幕具有特定命名方案的资产.

Now it shows, "Brand Assets" in *launch Images Source", just click on right side arrow of it and set all your app launch screen assets with specific naming scheme.

按" alt + cmd + shift + k ".它将清理您的应用程序的构建文件夹.

Press "alt + cmd + shift + k". It will clean build folder of your application.

现在,在设备中构建并运行您的应用.

Now, build and run your app in device.

这篇关于自XCode7更新以来在设备上启动应用程序时出现黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆