icon issue

12 replies [Last post]
Lourenco
User offline. Last seen 3 days 17 hours ago. Offline
Joined: 16 May 2010

I've built my application by using the different Icon.png files available in the sample code (from fishies and MovieClip). But when I transfer them, I do not see any change in the icon displayed on the device.
I built the application by using the Icon.png file from fishies and there it displays correctly. But when I change it to the icon file from MovieClip, the change does not reflect on the device. It is still the Icon.png file from fishies which is displayed.

Is there any cache or something I am doing wrong?

Replies

OderWat
User offline. Last seen 27 weeks 6 days ago. Offline
Joined: 4 Jun 2010

Did you try to delete the app on the device?

Do you use Organizer to transfer the app?

Did you use different version numbers in the build windows (if you use iTunes for installing the app)

For myself and my beta testers I make it easy and use different application names for every new build!

Lourenco
User offline. Last seen 3 days 17 hours ago. Offline
Joined: 16 May 2010

Before transferring to the device, I always delete the app on the device.
I am using Organizer to transfer the application (I did the test with iTunes, but the issue is the same).

I am going to modify the version numbers/application name and see if this resolves the problem.

myfogview
User offline. Last seen 2 weeks 2 days ago. Offline
Joined: 14 Apr 2010

I don't see the problem here. I changed the icon.png file then rebuild and downloaded the app to my iPhone 3GS (OS 3.1.3) using Organizer. The new icon showed up the first time.

I didn't change the app name or version.

Tom

Lourenco
User offline. Last seen 3 days 17 hours ago. Offline
Joined: 16 May 2010

No success on my side. At some time I achieved to change the icon. But as soon as I replace it with another icon, the new icon does not display.
Is there a way I can check for the Icon.png file which is embedded in the application?

Lourenco
User offline. Last seen 3 days 17 hours ago. Offline
Joined: 16 May 2010

I have built with a terminal window open and I can read the following messages :

/Users/lourenco/Desktop/Travel.app: replacing invalid existing signature
/Users/lourenco/Desktop/Travel.app: signed bundle with Mach-O thin (armv6) [com.dxstudio-cafe.travel]

Is the message "replacing invalid existing signature" normal and expected?

myfogview
User offline. Last seen 2 weeks 2 days ago. Offline
Joined: 14 Apr 2010

Yes, those two messages are normal for a build.

You can view the files that make up the build using OSX Finder on the .app file. Right click on the file and click Show Package Contents. You may have to copy the icon file out of the package to view it.

I'm at a loss to explain why you can't change the icon. Are you sure that you don't have multiple icon files? Make sure the Icon.png file has an uppercase "I".

-Tom

OderWat
User offline. Last seen 27 weeks 6 days ago. Offline
Joined: 4 Jun 2010

You can also download iPhone Explorer and check what is on the device... but that should be identical to what you install if you delete it on the device first.

You also could try to reboot your device...

seanh
User offline. Last seen 16 hours 29 min ago. Offline
Ansca Staff
Joined: 3 Jun 2009

If you right click on the app file that gets created and pick show package contents is the right icon in there?

DaveMB
User offline. Last seen 4 weeks 6 days ago. Offline
Joined: 15 Jun 2010

I'm seeing the same thing currently. Both Icon.png and Default.png are not doing anything on the device whether I install it from iTunes or XCode. Everything else that the app does is working, but it is not updating these resources. When I check the App package, they are there, though. It does not show up with the icon in iTunes either. Just the empty application icon.

I do see this:
Compressing/copying PNG /Users/DaveMB/Documents/Corona Projects/test/Default.png to /Users/DaveMB/Desktop/theApp!.app/Default.png
Copying /Users/DaveMB/Documents/Corona Projects/test/Icon.jpg to /Users/DaveMB/Desktop/theApp!.app/Icon.jpg
/Users/DaveMB/Documents/Corona Projects/test/Icon.jpg -> /Users/DaveMB/Desktop/theApp!.app/Icon.jpg

But then later I see this:
mv: rename /Users/DaveMB/Desktop/theApp!.app/icon.png to /Users/DaveMB/Desktop/theApp!.app/Icon.png: No such file or directory

I assume that is there in case people forget to capitalize the first letter of the Icon filename.

But still I cannot see it on the device or in iTunes.

EDIT:
After several delete and deploys, I can now see the Default.png when it loads...but still no Icon.png.

OderWat
User offline. Last seen 27 weeks 6 days ago. Offline
Joined: 4 Jun 2010

You Logs Show Icon.JPG ... Sure you have Icon.PNG ?

Tom
User offline. Last seen 17 hours 11 min ago. Offline
Ansca Staff
Joined: 13 Jul 2010

You need Icon.png and Default.png in your project folder (not a subfolder) for it to work. Be careful of the capitalization of the first letter. iTunes will not show an icon (it will be blank white box) but the icon should show up on the device and the Default.png image should up while your app is loading.

The Icon.png must be 57 pixels x 57 pixels.

From the text you posted, it looks like your are using Icon.jpg instead of Icon.png. That may affect the loading of Default.png file too.

DaveMB
User offline. Last seen 4 weeks 6 days ago. Offline
Joined: 15 Jun 2010

Ah, another notch in my Rookie Belt. I have a million such notches with every technology I work with.

Finder wasn't showing the extensions so I didn't copy the right one from my asset folder. Oy vey!

Thanks for the help and sorry to bother.

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.