Where is pngcrush for Xcode 4.3?

后端 未结 4 487
执笔经年
执笔经年 2021-02-08 07:27

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

相关标签:
4条回答
  • 2021-02-08 07:54

    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.

    0 讨论(0)
  • 2021-02-08 07:58

    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.

    0 讨论(0)
  • 2021-02-08 08:07

    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.

    0 讨论(0)
  • 2021-02-08 08:17

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

    0 讨论(0)
提交回复
热议问题