React Native pod install错误 SDK "iphoneos" cannot be located

给Xcode命令行工具指定路径

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

 

其他命令参考

$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
//查看sdk路径
$ xcrun --sdk iphoneos --show-sdk-path
//查看所有可用sdk
$ xcodebuild -showsdks

 

上一篇:【转】iPhone is not available. Please reconnect the device


下一篇:react-native 0.55.4在xcode10上面出现的问题