cocoapods install error

安装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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容