Xcode 10 app icon not showing

2020-05-20 07:58发布

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?

8条回答
Animai°情兽
2楼-- · 2020-05-20 08:26

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

查看更多
可以哭但决不认输i
3楼-- · 2020-05-20 08:27

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.

查看更多
你好瞎i
4楼-- · 2020-05-20 08:28

In my case these two options were set wrongly Project navigator

查看更多
劫难
5楼-- · 2020-05-20 08:29

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

查看更多
【Aperson】
6楼-- · 2020-05-20 08:30

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.

查看更多
我只想做你的唯一
7楼-- · 2020-05-20 08:38

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.

查看更多
登录 后发表回答