Xcode Target Change Icon

Yesterday, I noticed that my targets suddenly got icons (rather than the default icon A). However, I cannot understand which setting changed it, and now it has changed to the default value. I changed all the icon settings in Info.plist, but to no avail.

+3
source share
4 answers

Have you added to the root folder of your project? I think it will do. icon.png

+4
source

In reset goal icons

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

. , , (, , ).

+2

TARGET-info.plist (CFBundleIconFiles). " (iOS 5)" .

"icon.png", -.

enter image description here

+1

, Info.plist . "", (iOS5) TARGET-Info.plist(Raw Key: CFBundleIcons). , XCode. (Raw Key: CFBundleIconFiles). reset , , . Target Product ( , Build and Restart XCode).

Then go back to Info.plist and you will see entries for BOTH CFBundleIcons (iOS 5) and CFBundleIconFiles (an additional key is also called UIPrerenderedIcon). Remove CFBundleIcons (iOS5 one) as this is redundant.

Running images must have very specific names, so they will not be in Info.plist.

0
source

All Articles