I have added all required icons in asset catalogs as well as in my application, but it is not showing icon on simulator
-
Check image assets catalogs of project. – Mrug May 25 '15 at 11:46
-
How does your Images.assets look like like? – Sulthan May 25 '15 at 11:47
-
Share the screen shot for `Images.xcassets`. Have you added your image there? – Shruti May 25 '15 at 11:47
-
my assets catalogs have all the iamges and also i drage and drop all the images to the specific position but it cannot show on simulator.... i delete the app again and again but it cannot solve it??? #Sulthan #Mrug – SoftCoder May 25 '15 at 11:49
-
Now see that image #Shruti – SoftCoder May 25 '15 at 11:52
-
http://stackoverflow.com/questions/19146340/how-to-clean-build-in-xcode-5 – Omer Waqas Khan May 25 '15 at 12:01
6 Answers
iOS 11 Xcode 9
If you're using CocoaPods, stop right there!
Problem:
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.
Fix:
Copy and past this snippet into you podfile (I know...it's ugly):
post_install do |installer|
copy_pods_resources_path = "Pods/Target Support Files/Pods-IconTest/Pods-IconTest-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
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.
Source
This fix comes from the Cocoapods team. See thread here: https://github.com/CocoaPods/CocoaPods/issues/7003

- 254
- 4
- 11
-
2I wish I could upvote this 100 times! So much time wasted on this. Thank you! – lewis Oct 16 '17 at 11:00
-
On the iPhone 7, iPhone 8 & iPhone X simulators (Xcode 9, iOS 11), my app icon would not display if it contained certain colours!
Below are two icon images, 60pt@2x, both using the AdobeRGB colour profile. I generated these with ImageMagick - the only difference is that they are a different colour.
Icon A: #74B3BE
This icon appears fine in the simulator (iPhone 8)
Icon B: #E58921
This icon does not work in the simulator:
Adding a single pixel of Icon B's colour into Icon A would also cause it to stop working.
Removing the AdobeRGB colour profile from the icon fixes the problem, but results in washed out colours. The solution I used is to first convert the icon to the sRGB profile (I used ImageMagick).
It remains to be seen whether this is an issue on a physical iPhone 8 / iPhone X, since they are not yet available for sale. Other simulated hardware such as iPhone 6s did not exhibit this problem even though it was running iOS 11.
Addendum: during my testing (I've lost over a day on this!) I also observed pixel density metadata in the icons affecting whether the icon appeared in the simulator. 72dpi would work, and 150dpi would not. Unfortunately I changed the offending project and have not been able to reproduce that case since.

- 3,597
- 2
- 39
- 38
-
1Changing the App Icon Gamut from "Any" to "sRGB and Display P3", and then adding the same icon to the 3x Display P3 square solved this for me. – codeinthesky Sep 21 '17 at 06:53
Check This Link App Icon not showing up, although I have added in Xcode 5
This might be an XCode 6 bug that the added icons are not actually included in the app bundle, but you can work around it by going to Build Phases, expand Copy Bundle Resources, then press the "+" sign in the bottom to manually add the icon files to this category.
In addition iOS 5/6 seems to have a bug that the screen doesn't update the app icon even if the icon files are included in the bundle. To work around it you can drag the app icon into a folder, then iOS will update the appearance of it.
-
As all that iconz are there in the expand Copy Bundle Resources ..... can i remove that iconz and added manually??? – SoftCoder May 25 '15 at 13:10
-
Had the same problem.
You should also check if you have the correct value for the key "Asset Catalog App Icon Set Name" under "Project -> Build Settings".
In my case it was empty (just ""). When I added the correct value (section were the linker will find the app icon in Assets.xcassets), in my case "AppIcon", everything works as expected.
As I had many resources in that Assets.xcassets, I rearranged some of the resources in different sections etc. so the AppIcon section was not in the "root directory" of the catalog. Maybe this was the reason for the problem.

- 1,259
- 13
- 19
Just check under Target-> Your project->Build settings-> Asset catalog compiler -options-> primary app icon set name value is set to your desired icon.
Another hint-> If you don't have Asset catalog compiler-options under build settings. You might have to rebuild your project from scratch

- 31
- 3
Just delete the application from simulator, clean project (hit CMD + K
) and run again

- 8,864
- 3
- 26
- 46
-
-
-
yes all the sizes are good ......but it cannot show the icon on simulator.....it shows splash screen correctly but problem in icon #l0gg3r – SoftCoder May 25 '15 at 12:21