App icon unassigned image compilation warning mess

2019-03-18 02:50发布

问题:

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?

回答1:

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



回答2:

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.



回答3:

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.



回答4:

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.