pod install报错 configure: WARNING: ‘missing‘ script is too old or missing

xcrun: error: SDK “iphoneos” cannot be located
xcrun: error: SDK “iphoneos” cannot be located
xcrun: error: SDK “iphoneos” cannot be located
xcrun: error: unable to lookup item ‘Path’ in SDK ‘iphoneos’
/Users/yiguozhi/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-04b94/missing: Unknown --is-lightweight' option Try /Users/yiguozhi/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-04b94/missing --help’ for more information
configure: WARNING: ‘missing’ script is too old or missing
configure: error: in /Users/yiguozhi/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-04b94': configure: error: C compiler cannot create executables See config.log’ for more details

解决方案

未设置 iphoneos 的路径。
在 CLI 上运行它来设置它:sudo xcode-select --switch /Applications/Xcode.app

你可能感兴趣的:(各种ERROR,xcode,macos,ios)