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

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

    I had this problem with a Default@2x.png icon file. It seems that the file was not in the build target (the Target Membership part of its properties).

    The solution was to add it to the target. XCode mistakenly allowed files not in the target to be added to the list of icons.

    As another answer said, using the finder to browse the Archive file makes it obvious that the file is not present. Still, case sensitivity or other plist errors need to be investigated.

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

    I have same problem and find a solution works for me. Please try below steps:

    • Build > Clean All Targets
    • Renamed Icon.png to xcon.png
    • Renamed xcon.png to Icon.png
    • Build > Build and Archive
    • Resubmitted to iTunes connect - success!

    Mostly do nothing but change the name of the Icon.png and change it back, but it works!

    I have tried to use a 512*512 Icon.png for learning, but I copy a new one of 57*57 back later, then the issue come out, I think maybe it's the reason of this issue.

    I am new on mac. My XCode4 crashes about 10 times a day. I am missing Visual studio.

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

    Here was my solution to this problem. There was an empty string in the MyApp-Info.plist file. I manually deleted it (in a text editor) and my app verified and uploaded.

    <key>CFBundleIcons</key>
    <dict>
        <key>CFBundlePrimaryIcon</key>
        <dict>
            <key>CFBundleIconFiles</key>
            <array>
                <string></string> <--------- Extra string shouldn't be there------
                <string>Icon@2x.png</string>
                <string>Icon.png</string>
            </array>
        </dict>
    </dict>
    
    0 讨论(0)
  • 2020-12-06 10:22

    I had the exact same problem. When you build and archive, click show in finder, show the contents of the package of the archive and check if all the files are showing up. For me, the archive was missing Icon.png file for some reason. The archive utility has a bug. I moved the icons out of the resource folder, cleaned and built the project. Then again I moved the icons into the resource folder and cleaned and built it. Then the archive had copied the missing icon files.

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

    This method worked for me and I did not need to rename files and all that other good stuff.

    I found a method in the right-click context menu called Add Files to [Project]...

    Step 1

    Open XCode and make sure you are looking at your project view where it lists the project and top-level files below in a tree-style.

    Step 2

    Cmd-click or right-click on the Project Name (at top of left sidebar) and then point to "Add Files to [Project Name]..."

    Step 3

    Browse for files needing to be added. You will notice that files already added are greyed out whereas others that are not added stand out in full colour.

    0 讨论(0)
  • 2020-12-06 10:24
    1. Remove all icon files from xcode interface
    2. Move all files from your project folder to some folder on desktop
    3. rename the files in recently created desktop folder
    4. delete all entries from info-plist file for icons
    5. start assigning icons again by dragging onto Xcode window at appropriate places.
    6. When you create icons for iphone, xcode automatically assigns those icons to ipad. DO NOT DELETE THE ENTRIES IN IPAD SECTION. INSTEAD, DRAG IN THE IPAD RELATED ICONS TO REPLACE THE OLD ONES. Rememeber, this is important.
    7. Create archive.
    0 讨论(0)
提交回复
热议问题