在4.3之前的每个版本中都有一个苹果定制的pngcrush版本。我在Xcode4.3中找不到它。它是否仍然可以作为独立的exe文件使用?
另一个相关问题:来自Command Line Tools for Xcode的文件安装在哪里?
发布于 2012-02-22 11:23:44
找到它的最好方法是使用xcrun工具。
xcrun -sdk iphoneos5.0 -find pngcrush将在标准输出上打印路径,而xcrun -sdk iphoneos5.0 pngcrush将实际为您执行命令。
有关详细信息,请参阅man xcrun。
发布于 2012-02-22 03:36:59
如果你在Xcode4.3中使用app crush.rb,你会得到这样的错误:
sh: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush:没有这样的文件或目录
正如Yozone所说,将第一个声明改为:
pngcrush = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush'这将指向Xcode文件的新位置。
发布于 2012-02-21 13:20:42
pngcrush在/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin下
https://stackoverflow.com/questions/9338019
复制相似问题