xcode - 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 的方式,我会很高兴听到。我已经通过自制软件尝试过,但也遇到了问题。
谢谢你的帮助,
亚瑟
解决方案
@Wallace Huang 的回答对我有用(Mojave 10.14.6):
- 打开 Xcode
- 选择首选项 -> 位置
- 命令行工具版本提供了一个下拉菜单,我可以选择我拥有的命令行工具版本的单个选项。
推荐阅读
- node.js - Firebase 函数上传到存储
- php - 协助项目的网站重建
- javascript - Angular 尝试使用不记名令牌访问外部 API 时出现错误 401
- python - 加快熊猫滚动窗口
- ruby-on-rails - 从深度嵌套的 Ruby 哈希中删除空值
- android - 用我后端的 JWT 交换 Facebook 访问令牌
- mysql - 选择列具有多于 n 个元素的字段 SQL
- mvvm - 更改子视图中的数据时,SwiftUI 列表不更新
- javascript - 使用 Bootstrap 登录时,无法从登录页面重定向到索引页面。相同的系统可以在我的其他网站上运行,但不能在这个网站上运行
- c# - 我收到错误“将数据类型 nvarchar 转换为实数时出错”。