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 e
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.
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.
Starting from Xcode 4.3 they decided to repackage it as a single app bundle. Check this out http://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_4_3.html
Plug-ins, templates and other sub-components. Any path for component additions to developer tools that was previously found in a subdirectory of /Developer is now going to be located internal to the Xcode 4.3 application bundle.
Other standalone utility applications and add-on technologies. Several additional tools are no longer part of the default Xcode installation, they are now downloadable as separate packages. The More Developer Tools menu command provides a direct jump to developer.apple.com/downloads in Safari where these development tools can be found.
So anything missing you might find it inside the app bundle or it'd be an additional download.
The pngcrush is under /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin