Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Icon of Target in XCode

Tags:

xcode

ios

I noticed yesterday that my targets suddenly had icons (not the default A icon). However, I can't figure out what setting it was that changed it and it has now changed back to default. I changed all of the icon settings in the Info.plist, to no avail.

like image 291
Matt Hudson Avatar asked May 25 '12 14:05

Matt Hudson


People also ask

How do I change my target app icon?

Press and hold the app icon until a popup appears. Select “Edit”. The following popup window shows you the app icon as well as the application's name (which you can also change here). To choose a different icon, tap on the app icon.

How do I change my target app name in Xcode?

Rename the Target to Rename the App Select the project from the project navigator to open the project editor and see a list of the app's targets. To rename a target, select it, press the Return key, and enter the new name. If all you want to do is rename the app, you're finished.


3 Answers

Did you add icon.png to the root folder of your project? I think that would do it.

like image 159
Ashley Mills Avatar answered Sep 22 '22 12:09

Ashley Mills


To reset the targets icons

  • try to find in the project all the images with the icon name from info.plist;
  • check the files Target Membership (File Inspector section)

They don't have to be in the project root. If there're several icon files at different project folders, each icon is a member of it's own target, then you have different target icons with the same icon name (and naturally the only icon file is copied to the bundle root).

like image 33
A-Live Avatar answered Sep 23 '22 12:09

A-Live


In the TARGET-info.plist, add the key Icon files (CFBundleIconFiles). The key "Icon files (iOS 5)" is not enough.

The value should be "icon.png" unless you have named your icon differently.

enter image description here

like image 37
MUH Mobile Inc. Avatar answered Sep 22 '22 12:09

MUH Mobile Inc.