Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-23-2008, 07:36 PM   #12 (permalink)
rames44
Mobile Geek
 
Join Date: Aug 2008
Location: Florida, USA
Posts: 365
Send a message via AIM to rames44 Send a message via Yahoo to rames44
Default

I had the same problem. The file I originally had was named iTunesArtwork.png (Apple's docs said to use a PNG - I've since figured out that it works with either a PNG or a JPEG, but in my case the PNG is considerably smaller). Using the Finder, I renamed the file to just "iTunesArtwork", but it didn't work when put into the built application. In addition, somehow XCode remained convinced that the "real" name was iTunesArtwork.png when I tried to import it, even though it showed as just "iTunesArtwork" through the Finder and through the import process.

What I finally did was open up a terminal window and go look at the file. It turns out that even though Finder wasn't showing the extension any more, the underlying file still had the extension - Finder was just hiding it. One clue was that the file's icon was still showing up as a graphic.

When I used the terminal window to rename the file
Code:
mv iTunesArtwork.png iTunesArtwork
then, in the Finder, the icon for the file changed from my graphic to a gray rectangle. THAT file worked just fine when dropped into my built application. I was even able to then import it into XCode so that it's automatically included in the build.

Moral: Don't trust the Finder when it comes to removing extensions on files. Go down to the bare metal and do it for sure.
rames44 is offline   Reply With Quote
 

» Advertisements
» Online Users: 617
22 members and 595 guests
ADY, Ashleyk27, Dattee, denied, falcondor, iDifferent, ilmman, JasonR, john love, kampftrinker, klrichner, mapiko, mer10, mongoose250, Monstertaco, mylogon, peppinoss, Punkjumper, sle39lvr, smithdale87, timle8n1
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,745
Threads: 89,200
Posts: 380,562
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Ashleyk27
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:37 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.