美文网首页
cocoapods安装realm报错

cocoapods安装realm报错

作者: 帅气的阿斌 | 来源:发表于2017-07-03 14:02 被阅读119次

一、

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 一般选最新的

相关文章

网友评论

      本文标题:cocoapods安装realm报错

      本文链接:https://www.haomeiwen.com/subject/xqnacxtx.html