Missing Marketing Icon Xcode bug?

Solution 1:

I also faced this problem yesterday,i spent a whole day and finally i solved this problem.

Here is my environment

1.cocoapod

2.macOS Sierra/macOS High Sierra

3.Xcode 9

First of all,make sure you have already set the assets which cantains appicon,and make sure you have set the 1024*1024 icon for App Store. If so,you still get the problem while uploading the binary to App Store.Then there are two situations.

If you use cocoapod

**Also,you can not see the app icon properly after you run you app on you device.**It's because cocoapod's bug.Open the project directory,open the file whose path is [PROJECT_NAME]/Pods/Target Support Files/Pods-[PROJECT_NAME]/Pods-[PROJECT_NAME]-resources.sh,pull to the end,replace the code

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

to

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

then run your app,you can see the right app icon now and you can also upload binary properly.If it still does not work, use the following method.

If you don't use cocoapod,

it's a bug of APFS.

Once your app was archived right click it and choose show in Finder. Open the package contents and open this file inside of it: /Products/Application/yourApp.app/info.plist

In there you have to change all the DTXXX Values to be the same as in the latest version of Xcode 8.

DTXcode - “0833”
DTSDKName - “iphoneos10.3"
DTSDKBuild - “14E8301”
DTPlatformName - “iphoneos”
DTCompiler - “com.apple.compilers.llvm.clang.1_0”
DTXcodeBuild - “8E3004b”
DTPlatformVersion - “10.3”
DTPlatformBuild - “14E8301"

Save the plist file and go back to xcode where you need to export the archive for the App Store.

Last but not least download Application Loader 3.0 from Apple and upload the just generated IPA file.