大概率是xcode 路徑問(wèn)題
通過(guò)執(zhí)行如下命令來(lái)解決:
-
$: xcrun --sdk iphoneos --show-sdk-path
error:"unable to lookup item 'Path' in SDK 'iphoneos'"
-
$ xcode-select --print-path
/Library/Developer/CommandLineTools
-
$ xcodebuild -showsdks
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/
$ xcrun --sdk iphoneos --show-sdk-path (成功)