美文网首页
iOS 出现xcrun -sdk iphoneos clang

iOS 出现xcrun -sdk iphoneos clang

作者: Sunyc2016 | 来源:发表于2021-04-22 16:52 被阅读0次

出现

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

终端输入:

xcodebuild -showsdks

如果出现和下方一样的内容,则说明你的 Xcode 命令行工具路径错误.

error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

终端继续输入:

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

解决.

相关文章

网友评论

      本文标题:iOS 出现xcrun -sdk iphoneos clang

      本文链接:https://www.haomeiwen.com/subject/adrfrltx.html