1

即使在更新目录之后: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

并且在 xcode/preferences -> 命令行工具设置为“xcode 11.0 (11a420a), 我仍然无法运行 usdz 转换器。

这是错误消息:

jorges-iMac:~ jorgeg$ xcrun usdz_converter
xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk macosx -find usdz_converter 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory)
xcrun: error: unable to find utility "usdz_converter", not a developer tool or in PATH

请提供帮助以解决此问题。

谢谢你。

4

2 回答 2

4

从 Xcode 11 开始,不推荐使用 usdz_converter。您可以在此处下载等效工具:https ://developer.apple.com/download/more/?=USDPython 。

下载并解压缩文件夹后,开始使用这些命令行工具的最简单方法是在 Finder 中双击 USD.command。这将打开一个终端窗口,其中设置了所有必要的环境变量。

于 2019-12-11T16:10:44.257 回答
-3

我找到了一个解决方案Xcode - Preferences - Locations,将命令行工具更改为Xcode 10

在此处输入图像描述

于 2019-09-21T19:39:44.723 回答