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

Dirty Henry picture Dirty Henry · Mar 21, 2012 · Viewed 12.2k times · Source

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

Answer

RMeijs picture RMeijs · Apr 20, 2012

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!