安裝cocoapods的時(shí)候出現(xiàn)安裝錯(cuò)誤
在使用這個(gè)庫(kù)的時(shí)候換個(gè)機(jī)器然后就安裝不上了在這里把問(wèn)題和解決方案貼出來(lái)蝠筑,遇到問(wèn)題的同學(xué)可以參考一下
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.
解決方法
使用瀏覽器將庫(kù)下載下來(lái)
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
然后執(zhí)行以下命令
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