首页 > 解决方案 > Macports 上的 xcode 10.0

问题描述

我刚开始使用 Macports 下载刚升级到 Mojave 的软件,并确保我拥有最新版本的 Macports 和 Xcode 命令行工具。我一直在收到消息

Warning: xcodebuild exists but failed to execute

尝试下载 gnuradio 时。然后我使用“端口诊断”并收到以下消息:

Error: currently installed version of Xcode, none, is not supported by MacPorts. For your currently installed system, only the following versions of Xcode are supported: 10.0

尽管我使用的是 xcode 10.0 并且从未在此之前运行过任何东西,但这是事实。我是否遗漏了什么,或者可能是 Mojave 的可用时间不够长,无法通过程序解决可能的错误。如果有人有另一种运行 gnuradio-companion 的方式,我会很高兴听到。我已经通过自制软件尝试过,但也遇到了问题。

谢谢你的帮助,

亚瑟

标签: xcodemacportsgnuradiognuradio-companion

解决方案


@Wallace Huang 的回答对我有用(Mojave 10.14.6):

  1. 打开 Xcode
  2. 选择首选项 -> 位置
  3. 命令行工具版本提供了一个下拉菜单,我可以选择我拥有的命令行工具版本的单个选项。

Xcode 首选项的屏幕截图


推荐阅读