【发布时间】:2012-03-12 19:45:00
【问题描述】:
我刚刚更新到新版本的 Xcode,我尝试从开发者门户下载命令行工具和图形工具。去哪儿了?
【问题讨论】:
标签: ios xcode osx-lion opengl-es-2.0
我刚刚更新到新版本的 Xcode,我尝试从开发者门户下载命令行工具和图形工具。去哪儿了?
【问题讨论】:
标签: ios xcode osx-lion opengl-es-2.0
抱歉只回答了一半,但您可以通过启动 Xcode、进入首选项、选择下载选项卡并单击“命令行工具”上的“安装”来找到命令行工具。我也缺少纹理工具:-/
编辑:看,你会发现,texturetool 确实在那里,只是被隐藏了。如果您在 /Applications 中安装了 Xcode,它位于;
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool
【讨论】:
texturetool 实用程序仍与 Xcode 打包在一起(我目前使用的是 Xcode 11 beta 5),但它只是 iphonesdk sdk 的一部分(没有其他),您可以使用 @ 运行 sdk 工具987654323@命令行工具:
~ xcrun -sdk iphoneos texturetool
Usage error
Usage: texturetool [-hl]
texturetool -c <reference_image> <input_image>
texturetool [-ms] [-e <encoder>] [-p <preview_file>] -o <output> [-f <format>] <input_image>
first form:
-h Display this help menu.
-l List available encoders, individual encoder options, and file formats.
second form:
-c Compare <input_image> to <reference_image> and report differences.
third form:
-m Generate a complete mipmap chain from the input image.
-s Report numerical differences between <input_image> and the encoded image.
-e Encode texture levels with <encoder>.
-p Output a PNG preview of the encoded output to <preview_file>. Requires -e option.
-o Write processed image to <output>.
-f Set file <format> for <output> image.
注意:您可能还需要安装 Xcode 命令行工具:
~ xcode-select --install
【讨论】:
添加最后的海报答案。 1. 打开 /Applications/TextEdit.app ~/.bash_profile 。 将以下内容添加到 bash_profile 2.#纹理工具iOS的设置路径 PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:${PATH}" 导出路径 3. 保存文件并关闭控制台窗口。 4.重新打开命令行工具并输入texturetool
【讨论】: