Missing required icon file. The bundle does not contain

匿名 (未验证) 提交于 2019-12-03 08:36:05

问题:

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 exactly "120x120" pixels, in .png format for iOS versions >= 7.0.

I have this problem while submitting my app to the app store, I face this problem while validating my project and I tried all the answers here in stackoverflow but the error is same .

回答1:

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

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:

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



回答2:

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.



回答3:

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



回答4:

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


回答5:

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



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!