一、
Installing Realm 2.7.0 (was 2.1.2)
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup
xcrun: error: invalid DEVELOPER_DIR path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决办法:命令行运行如下指令
xcode-select --install
二、
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup
./scripts/swift-version.sh: line 59: [: =: unary operator expected
No version of Xcode found that supports Swift 3.1
解决办法:- xcode >> preferences >> locations >> CommandLineTools 一般选最新的