Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
I created application for iPhone successfully and now looking for distribution of it to App Store.
For that I have created 57x57 pixels myapp.png image which is of size 7kb.
From XCode, I added this file to project with option "copy". Now I am able to see the icon under "Resources" folder.
In Info.plist file, a new entry was created "Icon file" and the value I set is "myapp"

In Simulator I am able to see the icon. But executable in "build" directory is not having the icon.

I am not knowing how to set the icon for executable.

Please help me.
 
I just looked in my build directory and didn't see the icon either. But I know that when I install the application on the iPhone it is there. I think it is embedded you just don't see it with the OSX Browser.
 
Yeah, I opened up the package and there is an icon.png file (what I called mine, lame, I know) and when I open that in preview all I get is a ? image. Same thing if I look at the default.png. So I figured it is doing something funky with the code; are they encrypted with the developer information?
 
Yeah, I opened up the package and there is an icon.png file (what I called mine, lame, I know) and when I open that in preview all I get is a ? image. Same thing if I look at the default.png. So I figured it is doing something funky with the code; are they encrypted with the developer information?
I can view my images from the package contents in Preview just fine.
 
png images inside the app bundle targeted to the device are modified in a way that reduces their size. It's not an encryption per se but they are not standard png files after that and Preview and Photoshop can't display them. This apparently doesn't affect png images for the Sim and doesn't affect jpegs or other image formats.

OP, delete your build folder and try again. Xcode doesn't always add new versions of image files to an app when it should.
 
png images inside the app bundle targeted to the device are modified in a way that reduces their size. It's not an encryption per se but they are not standard png files after that and Preview and Photoshop can't display them. This apparently doesn't affect png images for the Sim and doesn't affect jpegs or other image formats.

OP, delete your build folder and try again. Xcode doesn't always add new versions of image files to an app when it should.


Well there you have it, thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.