an0
an0

Reputation: 17530

Where is pngcrush for Xcode 4.3?

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?

Upvotes: 12

Views: 5509

Answers (4)

honus
honus

Reputation: 799

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.

Upvotes: 20

Michael Douma
Michael Douma

Reputation: 1184

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.

Upvotes: 5

Yozone W.
Yozone W.

Reputation: 303

The pngcrush is under /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin

Upvotes: 2

iDifferent
iDifferent

Reputation: 2200

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.

Upvotes: 1

Related Questions