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

前端 未结 26 1226
一生所求
一生所求 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:24

    Had the same problem in xcode 4.2. Noticed my plist had strings for icon had items named both "icon.png' and 'Icon.png'. My icon file was named icon.png so tried deleting the string "Icon.png". This didn't work but decided to rename my asset 'Icon.png', removed them from the project and added them back in. Clean, build and success!

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

    This solution worked for me: http://vawlog.vawidea.com/en/2010/11/icon-specified-in-the-infoplist-not-found-under-the-top-level-app-wrapper-iconpng/

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

    Had the empty string node as well, but it wasn't reflected in Xcode. Somehow, the info-plist file was out of sync with the filesystem. I had to remove the reference to it and re-add it to my project, THEN I saw the . Fixing that fixed my problem.

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

    Right-click on the icon files and select Get Info. Pick the Targets tab and ensure that the target you are building is ticked. Just because a file is in the project, it doesn't necessarily mean that it is copied into the app bundle.

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

    Based on my experience this kind of error usually shows up when one or more of the png files that were used in the project were corrupted. It's possible that the png file is interlaced which will cause this kind of error.

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

    Same error here. It happens when I open an old project in Xcode 4. The solutions is to:

    • find the .plist file, search for the key Icon file (Not "Icon files" or "Icon files (iOS 5)").

    • Delete it (minus button).

    • Add it again and put the filename in value

    • Product->Clean and Product->Build again.

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