App icon unassigned image compilation warning message
Asked Answered
J

4

18

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

Jaundiced answered 7/10, 2014 at 15:34 Comment(4)
is it Xcode6 with iOS8 SDK? I have a little doubt about it... can you confirm it, please?Bicyclic
Yes its Xcode 6 beta 6 and iOS8.Ialso get a similar message about the launch image as well as for the app icon.Jaundiced
something is quite not correct on your screenshot, the labels (at least!) should say ...iOS7-8 or ...iOS5-8, and the iOS8 3x icon is missing (unassigned in your screenshot). it seems something happens to your iOS8 SDK because your Xcode does not recognise it, but up to iOS7 only. are you sure this is Xcode6 and not an Xcode5 which cannot recognise the new assets?Bicyclic
I'll try re-installing Xcode/SDK and see if it fixes anythingJaundiced
J
15

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

Jewry answered 24/9, 2015 at 11:17 Comment(0)
W
7

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.

Wilbourn answered 31/12, 2014 at 19:26 Comment(4)
Since originally posting I've somehow managed to get the app icon warnings to be removed however I still have them for the launch images and for those there isn't a contents.json file. There are two subfolders, within AppIcon.appiconset there is a Contents.json but within LaunchImage.launchimage there isn't a Contents.json.Jaundiced
Hmm I wonder if the lack of a contents.json may be causing your issue. In XCode6 I just created a new project then created a new launch image. Within that it had a contents.json. Did you try creating a new launch image and placing the current photos in that?Wilbourn
I don't see anything that says "unassigned" in any of my contents.json fileLimousine
@softwareisfun I would assume that you're running a newer version of xcode so this answer would not apply.Wilbourn
I
2

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.

Insnare answered 12/1, 2016 at 15:41 Comment(0)
W
0

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.

Wynn answered 17/2, 2016 at 14:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.