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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With