How to solve “Missing Marketing Icon. iOS Apps must include a 1024x1024px”

前端 未结 9 1826
萌比男神i
萌比男神i 2021-02-01 12:19

I am uploading app in iTunes from Xcode 9.0...This error is showing on the last step. How to solve this? 1024x1024px icon is present in my icons list

9条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-01 12:23

    First, follow @Sukeshj 's solution.

    If @Sukeshj 's solution doesn't work and you are using CocoaPods for project management, that may be the key point.

    My environment: XCode 9.1 CocoaPods 1.2.1

    Find {porject}/Pods/Target Support Files/Pods-{porjectname}/Pods-{porjectname}-resources.sh in Xcode, and change the last piece of code like this:

    before change:

    printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-
    format human-readable-text --notices --warnings --platform 
    "${PLATFORM_NAME}" --minimum-deployment-target 
    "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --
    compress-pngs --compile 
    "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
    
    fi
    

    after change:

    printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-
    format human-readable-text --notices --warnings --platform 
    "${PLATFORM_NAME}" --minimum-deployment-target 
    "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --
    compress-pngs --compile 
    "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-
    icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-
    plist "${BUILD_DIR}/assetcatalog_generated_info.plist"
    
    fi
    

    Try to archive your project and upload it again, hope it helps.

提交回复
热议问题