ios 错误:名为“AppIcon”的应用图标集没有任何适用的内容

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31733448/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 07:04:16  来源:igfitidea点击:

Error: The app icon set named "AppIcon" did not have any applicable content

ioswatchkit

提问by Ninja

I know that there are several questions on StackOverflow with similar content, but it seems that I am still unable to get the solution to this issue.

我知道StackOverflow上有几个问题类似的内容,但是好像还是无法得到这个问题的解决方案。

I have:

我有:

  1. Made sure my AppIcons are the adequate size
  2. Put the images into Images.xcassets
  1. 确保我的 AppIcons 大小合适
  2. 将图像放入 Images.xcassets

The keyword "AppIcon" does not show up anywhere in my .plist files. I have built cleaned the application and reran the application. I am a bit unsure what is the issue. I get this error when I build this on both Watch + IOS targets for device.

关键字“AppIcon”没有出现在我的 .plist 文件中的任何地方。我已经构建了清理应用程序并重新运行应用程序。我有点不确定是什么问题。当我在设备的 Watch + IOS 目标上构建它时出现此错误。

The strange thing is that if I deleted all the image files from xcassets, Xcode compiles just fine, telling me that the issue lies with my images.

奇怪的是,如果我从 xcassets 中删除所有图像文件,Xcode 编译得很好,告诉我问题出在我的图像上。

Please let me know if you have any ideas.

如果您有任何想法,请告诉我。

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

回答by Saravana Kumar

enter image description here

在此处输入图片说明

You need follow the instructions in above image

您需要按照上图中的说明进行操作

回答by Badre

make sure that you have a good size of AppIcon for example iPhone : 120 - 120 180 - 180

确保您有合适的 AppIcon 大小,例如 iPhone:120 - 120 180 - 180