您好,欢迎来到二三四教育网。
搜索
您的当前位置:首页SDK "iphoneos" can not

SDK "iphoneos" can not

来源:二三四教育网

关于Mac 下安装多个Xcode 交叉编译libvlc出现的一些问题和解决方法。

执行脚本出现下面的错误:

building arm64...
xcrun -sdk iphoneos clang is unable to create an executable file.

查找原因:

mac$ xcode-select --print-path
/Library/Developer/CommandLineTools

发现是这个Xcode路径判断错误。

mac$ xcodebuild -showsdks
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

回想起最近安装了另外两个版本的Xcode,应该是这样导致了路径错误。

mac$ ls /Applications/Xcode
Xcode.app/ Xcode2.app/ Xcode3.app/

解决方法:给Xcode命令行工具指定路径

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

Copyright © 2019- how234.cn 版权所有 赣ICP备2023008801号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务