Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels

前端 未结 17 3815
眼角桃花
眼角桃花 2021-02-19 17:05

My recent App Store upload gave me this error:

iTunes Store operation failed.
Missing required icon file. The bundle does not contain an app icon for iPhone / iP         


        
相关标签:
17条回答
  • 2021-02-19 17:20

    Since you mentioned the icon filename is not in the Info.plist you'll want to add:

    <key>CFBundleIconFiles</key>
    <array>
        <string>Icon-120.png</string>
    </array>
    

    It appears to be required now in order to associate the icon(s) with your app.

    0 讨论(0)
  • 2021-02-19 17:23

    after wasting my almost 1 day and trying every possible solution available on the internet, but nothing worked.

    Finally, I got the actual problem and the way to solve. Here we go.

    The actual problem is that your image assets (Images.xcassets) are not linked with your target project. Now solution,

    • Go to the Build Phases of your project.
    • Add Copy Bundle Resources from the add icon on top if not already added.
    • Then inside that add Images.xcassets.
    • That's it.. you are done. Now, it should work fine.

    How I got the solution? Just compared the configurations of a newly created project with my current project. And voila.

    0 讨论(0)
  • 2021-02-19 17:25

    TLDR: beware of special characters in your app's display name a.k.a. "Product Name".

    My project is new (created fresh in Xcode 9 a month ago) and we had correctly-sized assets for all the image groups (app icon, settings, etc.) dragged into the xcassets file. I was getting these errors about missing icons of exact sizes when uploading to App Store Connect API, both with fastlane as well as within Xcode. This was the first time uploading this particular app.

    I wasted a few very frustrating hours on this issue, and tried various things to no avail, that are mentioned online:

    • cleaning all build folders
    • recreating the xcassets file, making sure it is in the correct build phase
    • naming the files the "old way" (e.g., Icon-60@2x.png etc.) before dragging into the AppIcon inside the xcassets
    • verifying the project points at the right xcassets file for App Icon
    • I could go on...

    In the end, on a hunch, I tried to rename the app (that is, the "Product Name" in Xcode project's settings, which is shown on the user's home screen under the app icon) because ours contained a tilde ~ (our app is a retro themed game called SOMETH~1.app). Removing the tilde fixed my issue. I became suspicious because the output files from the build are literally called what you put into the "Product Name" field, and so I could imagine that on the server side the path with tilde is being handled incorrectly. It never gave trouble in iOS Simulator or my device, but there you go! FWIW I did submit a bug report, but have yet to hear back from Apple.

    Thought I'd post my experience in case somebody else out there runs into the same problem.

    0 讨论(0)
  • 2021-02-19 17:25

    In the "General" view, inside the "App Icons and Launch Images" section, make sure that "Apps Icons Source" is linked with the "Images.xcassets" file.

    0 讨论(0)
  • 2021-02-19 17:27

    If you have added all icons files to the "images.xcassets", it could be possible that you have forgotten check the "Target Membership" in the right panel of Xcode.

    You will can to clean your project, archive it and send it to iTunesConnect.

    0 讨论(0)
  • 2021-02-19 17:32

    Just had same problem. Using Xcode 8.3.3 and wanted to use AppIcon in Assests catalogue. Tried all sorts of Stack Overflow answers without success.

    Finally learned about a deep clean step from Ken/Apple Forum:

    • removed all icon files, whether from resources (delete - trash) or appicon file (select - remove selected items); removed even assets folder
    • deep cleaned (Use the Product menu w/option key pressed, then choose to 'clean build folder')
    • added a new asset catalogue and called it "Assets" right clicked in Assets folder and added new app icon set - changed that one in inspector to be for iOS >=7
    • triple checked all my icon files OUTSIDE of Xcode (all were already png files of right resolution, but some had still colour profile attached from photoshop elements or did have indexed colour instead of RGB profile. so I made sure I only save a png file without colour profile and from a background layer) - not sure that was necessary
    • archived the build from Product menu
    • validated and uploaded the build from Window - Organizer
    0 讨论(0)
提交回复
热议问题