cocoapods install error

2017-10-25  本文已影响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
上一篇下一篇

猜你喜欢

热点阅读