Xcode 6.1关于在资产目录中启动图像的警告 [英] Xcode 6.1 Warning about Launch Image in Asset Catalog

查看:125
本文介绍了Xcode 6.1关于在资产目录中启动图像的警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xcode 6.1来创建支持iOS 6及更高版本的应用。

I am using Xcode 6.1 to create a app supporting iOS 6 and later.

。在目标的应用图标和启动图像中,我设置了启动图像源作为使用资产目录并启动屏幕文件到LaunchScreen。

.In target's "App Icons and Launch Images", I set the Launch Images Source as "Use Asset Catalog" and Launch Screen File to "LaunchScreen".

在Xcode创建的Images.xcassets中,我填写LaunchImage的每个框,但是总有一条警告信息:

In Images.xcassets which created by Xcode, I fill in every box for "LaunchImage", but there's always a warning message:


Retina 4英寸支持。使用启动屏幕文件和
定位iOS 7.1及更早版本的应用程序还需要在
和资产目录中包含启动图像。

Retina 4-inch Support. Applications using Launch Screen Files and targeting iOS 7.1 and earlier need to also include a Launch Image in an Asset Catalog.

我创建了另一个名为默认的图像集,并用预期图像填写Retina 4 2x框。但警告信息仍在那里。

I created another Image Set named as "Default" and fill in the "Retina 4 2x" box with expected image. But the warning message still there.

清除此警告的任何提示?谢谢。

Any hint to clear this warning? Thanks.

推荐答案

今天早上我遇到了同样的问题。以下是我修复它的方法。

I ran into the exact same problem this morning. Here's how I fixed it.


  1. 在项目导航器中选择目标。在常规标签下,您应该会看到应用图标和启动图片的部分。如果您看到启动图像源,请单击使用资产目录。

  1. Select your Target in the project navigator. Under the General tab, you should see the section for App Icons and Launch Images. Where you see Launch Images Source, click 'Use Asset Catalog'.

然后,您将看到将启动图像迁移到资产目录对话。点击迁移。

You will then see Migrate launch images to an asset catalog dialogue. Click 'Migrate'.

确保上一个屏幕上的启动图像来源指向资产中设置的右图像集目录。在您的情况下,您可以将其设置为默认。

Make sure that your Launch Images Source on the previous screen points to the right image set in your asset catalog. In your case, you would set it to 'Default'.

这应该处理警告。希望有所帮助!

That should take care of the warning. Hope that helps!

这篇关于Xcode 6.1关于在资产目录中启动图像的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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