App icon unassigned image compilation warning mess

2019-03-18 02:36发布

I've tried googling this but am still non the wiser as to what the actual problem or solution is. I supplied all the app icon images Xcode was asking for but I'm getting an AppIcon unassigned image compilation message. What do I need to do to remove the warning essage?

enter image description here

4条回答
Luminary・发光体
2楼-- · 2019-03-18 02:56

In my case a created Forms based project auto generates a project structure that refers to an app icon for the "Car" iOS app category: /Users/your_userid/Projects/ProjectName/iOS/Resources/Images.xcassets/AppIcons.appiconset/Contents.json

I opened that json file and removed the app icon entry that contained an "idiom" entry of "Car". Then the build was successful. Another solution would have been to add an app icon for Car. But my app is not going to be used in a car.

查看更多
别忘想泡老子
3楼-- · 2019-03-18 02:59

I faced same problem with XCode7 and app icon image, and just Selecting the unassigned asset and pressing delete solved the problem for me.

查看更多
smile是对你的礼貌
4楼-- · 2019-03-18 03:18

If you go into the media.xcassets directory in finder you can edit the contents.json file to remove anything without "filename" assigned. For example you would remove:

{
      "idiom" : "universal",
      "unassigned" : true
 }

And that should remove the compiler warnings.

查看更多
萌系小妹纸
5楼-- · 2019-03-18 03:20

I created the project from Xcode 5 version ,when i build, i received 5 unassigned images... warnings and when i import it into the xcode 7 version , i just received 1 warning, then i delete the unassigned image and build , now all warning removed.

查看更多
登录 后发表回答