Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is pngcrush for Xcode 4.3?

Tags:

xcode

There was an Apple-customized version of pngcrush in every version of Xcode before 4.3. I can't find it in Xcode 4.3. Is it still available as a standalone exe file?

Another related question: where are the files from Command Line Tools for Xcode installed?

like image 355
an0 Avatar asked Feb 18 '12 02:02

an0


2 Answers

The best way to find it is to use the xcrun tool.

xcrun -sdk iphoneos5.0 -find pngcrush will print the path on stdout while xcrun -sdk iphoneos5.0 pngcrush will actually execute the command for you.

See man xcrun for more info.

like image 183
honus Avatar answered Oct 19 '22 05:10

honus


If you are using app crush.rb with Xcode 4.3, and you get the error:

sh: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush: No such file or directory

As Yozone said, change the first declaration to:

pngcrush = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush'

That will point to the new location of the Xcode files.

like image 35
Michael Douma Avatar answered Oct 19 '22 05:10

Michael Douma