美文网首页
cocoapods install error

cocoapods install error

作者: 暮雨飞烟 | 来源:发表于2017-10-25 13:52 被阅读0次

安装cocoapods的时候出现安装错误

在使用这个库的时候换个机器然后就安装不上了在这里把问题和解决方案贴出来,遇到问题的同学可以参考一下
github issue

Installing Realm (0.96.0)
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup

core is not a symlink. Deleting...
Downloading dependency: core 0.94.0
Downloading core failed. Please try again once you have an Internet connection.

解决方法

使用浏览器将库下载下来
cocoa:
https://static.realm.io/downloads/sync/realm-sync-cocoa-1.10.8.tar.xz
core:
https://static.realm.io/downloads/core/realm-core-2.8.1.tar.xz
然后执行以下命令

1.cd `getconf DARWIN_USER_TEMP_DIR`
2.curl https://static.realm.io/downloads/core/realm-core-0.97.1.tar.bz2 -o realm-core-0.97.1.tar.bz2
(use VPN or use the website to help download on onedrive: http://ctrlq.org/save/)
3.cd ~/yourProjectDir/
4.pod install --verbose

相关文章

网友评论

      本文标题:cocoapods install error

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