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

前端 未结 17 3923
眼角桃花
眼角桃花 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: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.

提交回复
热议问题