Ios – My iOS app is not showing App Icon in Simulator


I have added all required icons in asset catalogs as well as in my application, but it is not showing icon on simulator

enter image description here

Best Solution

iOS 11 Xcode 9

If you're using CocoaPods, stop right there!


Basically there is some difference in the way Xcode 9 / iOS 11 adds the asset files and some weird meddling that CocoaPods gets up to which result in the icon files not being included.


Copy and past this snippet into you podfile (I's ugly):

post_install do |installer|
    copy_pods_resources_path = "Pods/Target Support Files/Pods-IconTest/"
    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 =
    new_contents = text.gsub(string_to_replace, assets_compile_with_app_icon_arguments), "w") {|file| file.puts new_contents }

Be sure to change "IconTest" value in the path name on the second line to your project name. Run 'pod update' and voilĂ  there's ye app icon back.


This fix comes from the Cocoapods team. See thread here: