stderr: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Libr...

本文介绍了如何解决使用xcodebuild时出现的错误提示,包括工具xcodebuild要求Xcode但当前开发者目录为命令行工具实例的问题及未知服务器侧错误。通过切换到Xcode作为默认环境来解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误提示:

(1). stderr: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

(2). An unknown server-side error occurred while processing the command. Original error: Could not determine Xcode version: Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk.

说明xcode不是系统的默认环境

解决方案:

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/

 

转载于:https://www.cnblogs.com/xiyuan2016/p/9283766.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值