Missing required icon file. The bundle does not contain

后端 未结 5 1313
忘了有多久
忘了有多久 2021-02-13 03:09

This is the error message:

ITunes Store operation failed. Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of

相关标签:
5条回答
  • 2021-02-13 03:40

    Just had same problem and post answer in case someone like me, stumbles over here. Using Xcode 8.3.3 and wanted to use AppIcon in Assets 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)
  • 2021-02-13 03:41

    I was facing this error while uploading app to AppStore

    Missing required icon file - The bundle does not contain an app icon for iPad of exactly ‘76x76’ pixels, in .png format for iOS versions >= 7.0.

    Missing required icon file - The bundle does not contain an app icon for iPad of exactly ‘152x152’ pixels, in .png format for iOS versions = 7.0.

    I solved it by adding this script at the end of Podfile

    post_install do |installer|
        copy_pods_resources_path = "Pods/Target Support Files/Pods-TargetName/Pods-TargetName-resources.sh"
        string_to_replace = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"'
        assets_compile_with_app_icon_arguments = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${BUILD_DIR}/assetcatalog_generated_info.plist"'
        text = File.read(copy_pods_resources_path)
        new_contents = text.gsub(string_to_replace, assets_compile_with_app_icon_arguments)
        File.open(copy_pods_resources_path, "w") {|file| file.puts new_contents }
    end
    

    Install your Podfile again, may it should help.

    P.S. Remember TargetName in above script should be your Projects' Target Name. e.g. if your target name is MyAppName then you should replace TargetName in above script as MyAppName

    0 讨论(0)
  • 2021-02-13 03:44

    Right click on AppIcon xcassets, then you can see new app Icon.

    It will show you New App Icon, then it will show you all required icon, and you need to fill everything needed there and remove current one.

    0 讨论(0)
  • 2021-02-13 03:46

    Please change your development target 6.0 to 7.0 in your xcode and start new archive its working successfully.

    0 讨论(0)
  • 2021-02-13 03:53

    Open your project's General Preferences in Xcode, and make sure that your App Icons Source is the Asset Catalog named "AppIcon":

    App Icons and Launch Images

    Then, in the project navigator, click Images.xcassets, click AppIcon, and then drag and drop your icons into the required places. If AppIcon is not shown, you'll have to right click and choose "New App Icon" and then select the proper icons from the inspector on the right:

    AppIcon in Images.xcassets

    Once you've done this, your icons should show up where they're supposed to.

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