Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.3 : missing icons for iOS apps in Organizer's archives

Since upgrading to Xcode 4.3.x, my archives of iOS app in Organizer don't have an icon. (I have icons on my Mac OS X apps though)

One app in particular is an iPad app for which i provided 2 icons (normal + retina sizes) but still, I don't get an icon for it in my archives.

xcode-select -print-path returns /Applications/Xcode.app/Contents/Developer (which I believe is the right setting as I want to have xcodebuild and xcron available in the terminal)

EDIT :

After investigation, I've found out that as of Xcode4.3.2, archives are using the first item of the CFBundleIconFiles embedded inside the iOS5 CFBundleIcons property to display, but it won't work if you keep a .png extension to your file.

1/ About what Apple's documentation says:

When specifying icon files using the CFBundleIcons key, it is best to omit the filename extensions of your image files. If you include a filename extension, you must explicitly add the names of all image files (including any high-resolution variants). When you omit the filename extension, the system automatically detects high-resolution variants of your file, even if they are not included in the array.

Given that you don't want to have file extensions to your icon files (cf. above), mentioning "ipad" only in your .plist when your archive actually contains "ipad" and "ipad@2x" won't work. I had to mention both in the .plist for the retina version to be actually used on a Retina device.

BUT icons without .png extensions won't validate when you try to submit on the App Store. I'm fxxxed. Icons are making my life a nightmare right now.

2/ About TestFlight support of icons:

TestFlight doesn't seem to support icon files without extension as I can't see my icons on this service now that I removed my files .png extension

like image 455
Dirty Henry Avatar asked Mar 21 '12 08:03

Dirty Henry


3 Answers

I had the exact same problem. Intrigued by your statement about xcode-select I first tried:

xcode-select -print-path

Which resulted in:

/Developer

Which is obviously wrong. So I first closed Xcode and then:

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

After I restarted XCode all the icons were back in the Organiser.

So thank you for pointing me in the right direction! But I realize it is probably not the solution for you. Hopefully others may benefit!

like image 151
RMeijs Avatar answered Nov 20 '22 19:11

RMeijs


Add iTunesArtwork in your info.plist's CFBundleIconFiles.

like image 21
jianghuan Avatar answered Nov 20 '22 18:11

jianghuan


In your projects build phases turning off image compression solved this for me (it's either image or png compression, not at my computer to check) now this is a very strange situation because I haven't changed the way I format my images sense upgrading to 4.3 but during the app validation process I received an error telling me that my Icon.png wasn't 57x57 when it clearly was. I looked up how to solve this and turning off image compression was the fix... Which apparently made the icon show up in organizer too.... Weird.

Good luck!

like image 1
Mick MacCallum Avatar answered Nov 20 '22 17:11

Mick MacCallum