With the iPhone 4’s high-resolution screen, designers need to create two sets of art; the guidelines are to name the files like so: SomeCoolImage.png
and SomeCoolImage@2x.png
. Unfortunately, if you try to add these files to an SVN repository, the @
symbol throws them off:
$ svn add Icon\@2x~iphone.png svn: warning: 'Icon' not found
The fix, thanks to the subversion_users Google Group, is to add another @
to the end of the filename, like so:
$ svn add ./Icon\@2x~iphone.png@ A (bin) Icon@2x~iphone.png
If you’d like to do this for all of your high-resolution art in a folder, here’s a tiny Bash command for the task:
for x in `ls *\@*`; do svn add $x\@; done
I found this on another site; thought I’d post it here.
svn add Icon\@2x~iphone.png
should be
svn add ‘Icon\@2x~iphone.png’@HEAD
What I wrote works for me. Perhaps this depends on your SVN configuration, the shell you’re using (I’m using Bash), etc.…
Worked out of the box! :)
Thanks a lot for sharing this!
This has been driving me nuts! Thanks for posting!
-Ralph
Thanks for posting. Works well.