Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

Graves Robber
($1.99)

African Adventure
($0.99)

iTazer
($0.99)

ArtStudio
($3.99)

Pigs Vs Wolves
($1.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: 354
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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 23,659
Threads: 38,415
Posts: 168,799
Top Poster: smasher (2,540)
Welcome to our newest member, suwimol
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:19 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.