Problem with Icon.png (Icon specified in the Info.plist not found under the top level app wrapper: Icon.png (-19007))

前端 未结 26 1225
一生所求
一生所求 2020-12-06 09:51

I\'m putting together a universal app and I have the icons in my project, but I keep getting a warning from the compiler in regards to Icon.png.

I followed the instr

相关标签:
26条回答
  • 2020-12-06 10:33

    I spent far too much time on this issue too!

    In the Targets / Info tab I found that I had empty rows in two sections, both under Icon files and under Icon files -> Primary Icon -> Icon files.

    You need to remove the empty lines in BOTH sections to be able to archive and validate the app.

    0 讨论(0)
  • 2020-12-06 10:35

    I am using Xcode 4.3.3.
    I solved the problem, by dragging my custom icon.png file from a folder where I placed it, into the project (ApplicationName-Resources-icons Folder). After this, my icons folder looked like this:

    • icon-72.png
    • icon.png
    • icon@2x.png
    • icon-72@2x.png

    So the before missing "icon.png" has been added. Thereafter the validation passed.

    0 讨论(0)
  • 2020-12-06 10:37

    This problem was driving me crazy! I tried everything posted here.

    This is how it worked for me:

    • Product -> Archive
    • In organizer windows -> Archives right-click on the created archive
    • Select "Show in Finder"
    • right-click on {YourAppArchive}.xcarchive and select "Show packages contents"
    • go to Products -> Applications
    • right-click on {YourApp} and select "Show packages contents"
    • Copy the missing Icon files here
    • Go back to Xcode organizer and hit "Validate..."
    0 讨论(0)
  • I had this issue. The answer for me was to check the capitalization. In my plist I had Icon-small-50.png Icon-small.png and Icon-small@2x.png I capitalized the S and the issue went away. e.g. Icon-Small-50.png Icon-Small.png and Icon-small@2x.png

    0 讨论(0)
  • 2020-12-06 10:39

    Add your Icon-files to "Build Phases" -> "Copy Bundle Resources"

    Hope it helps...

    0 讨论(0)
  • 2020-12-06 10:42

    I also got this error when I had an extra blank line in my Info.plist. I had Item 0, which was Icon.png, and I had Item 1, which was blank. Item 1 had been my iPad icon, but I cleared it. Archiving then gave me the warning you saw. Removing the line for Item 1 completely fixed the issue.

    0 讨论(0)
提交回复
热议问题