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

相关推荐