Xcode 7.0 启动图像集“LaunchImage”有 2 个未分配的子项
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32695893/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 7.0 The launch image set "LaunchImage" has 2 unassigned children
提问by Drew Bennett
I just updated xcode to 7.0 and fixed most of the bugs, but I keep getting this error message:The launch image set "LaunchImage" has 2 unassigned children. I already deleted the two unassigned children and still getting this error message.
我刚刚将 xcode 更新到 7.0 并修复了大部分错误,但我不断收到此错误消息:启动图像集“LaunchImage”有 2 个未分配的子项。我已经删除了两个未分配的孩子,但仍然收到此错误消息。
采纳答案by Loegic
Try to deep clean Xcode
(command+alt+shift+K)
尝试深度清理Xcode
(command+alt+shift+K)
回答by Stephen Chen
If you click the problem , Xcode will lead you directly into the Images.xcassets , manually delete the two Unassigned images , rebuild it work fine for me.
如果你点击问题,Xcode会直接带你进入Images.xcassets,手动删除两个未分配的图像,重建它对我来说很好用。
回答by Daniel
The deep clean didn't work for me. As trivial as it sounds, recreating the LaunchImages fixed the issue for me. I don't know why it happened in the first place, probably an Xcode 7 bug, but it works again.
深层清洁对我不起作用。尽管听起来微不足道,但重新创建 LaunchImages 为我解决了这个问题。我不知道为什么它首先发生,可能是 Xcode 7 错误,但它再次起作用。
回答by James Allan
What you have to do is manually delete the two unassigned images, and then right click your image asset panes and choosing: App Icon & Launch Images > New iOS Launch Image. Once you click on that, a new set of launch image screen slots should populate. See the screenshot below for reference.
您需要做的是手动删除两个未分配的图像,然后右键单击您的图像资产窗格并选择:App Icon & Launch Images > New iOS Launch Image。单击它后,应填充一组新的启动图像屏幕插槽。请参阅下面的屏幕截图以供参考。
回答by Greg
In my case deep clean would not work until I manually deleted both unassigned images. For me the fix was a combination of all three answers above.
在我的情况下,深度清理不会起作用,直到我手动删除了两个未分配的图像。对我来说,修复是上述所有三个答案的组合。
回答by Stamp
Select the image. Open the attributes inspector and check that a device has been selected - i.e. all/universal. Then drag and drop the unassigned image into the appropriate image size.
选择图像。打开属性检查器并检查是否已选择设备 - 即全部/通用。然后将未分配的图像拖放到适当的图像大小。