Xcode 4.3 的 pngcrush 在哪里?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9338019/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where is pngcrush for Xcode 4.3?
提问by an0
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?
pngcrush
在 4.3 之前的每个 Xcode版本中都有一个 Apple 定制的版本。我在 Xcode 4.3 中找不到它。它仍然可以作为独立exe
文件使用吗?
Another related question: where are the files from Command Line Tools for Xcode
installed?
另一个相关问题:Command Line Tools for Xcode
安装的文件在哪里?
回答by honus
The best way to find it is to use the xcrun tool.
找到它的最好方法是使用 xcrun 工具。
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.
xcrun -sdk iphoneos5.0 -find pngcrush
将在标准输出上打印路径,同时xcrun -sdk iphoneos5.0 pngcrush
实际为您执行命令。
See man xcrun
for more info.
查看man xcrun
更多信息。
回答by MichaelD
If you are using app crush.rb with Xcode 4.3, and you get the error:
如果您在 Xcode 4.3 中使用 apprush.rb,并且您收到错误消息:
sh: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush: No such file or directory
sh: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush: 没有那个文件或目录
As Yozone said, change the first declaration to:
正如 Yozone 所说,将第一个声明更改为:
pngcrush = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush'
That will point to the new location of the Xcode files.
这将指向 Xcode 文件的新位置。
回答by Yozone W.
The pngcrush is under /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
pngcrush 位于 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
回答by iDifferent
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
从 Xcode 4.3 开始,他们决定将其重新打包为单个应用程序包。看看这个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.
插件、模板和其他子组件。以前在 /Developer 的子目录中找到的用于向开发人员工具添加组件的任何路径现在都将位于 Xcode 4.3 应用程序包的内部。
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.
其他独立的实用程序和附加技术。一些额外的工具不再是默认 Xcode 安装的一部分,它们现在可以作为单独的包下载。“更多开发者工具”菜单命令可直接跳转到 Safari 中的 developer.apple.com/downloads,在那里可以找到这些开发工具。
So anything missing you might find it inside the app bundle or it'd be an additional download.
因此,您可能会在应用程序包中找到任何缺失的内容,或者需要额外下载。