Jorge Luis Jiménez
Jorge Luis Jiménez

Reputation: 1308

pod install doesn't work when I try to get Realm 0.96.2

I am try to follow some tutorial about Realm and iOS9 and I need to install Realm but after to create the pod init file and add this code:

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
# Uncomment this line if you're using Swift
# use_frameworks!

target 'RealmTasks' do
use_frameworks!
pod 'RealmSwift'

end

I tried to do

pod install

but I am getting this error

Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing Realm (0.96.2)
[!] /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.

I read something about it on Github https://github.com/realm/realm-cocoa/issues/2446 and it mentioning about server problems and the last comment say about to download directly the last version. I try with that:

$ curl -f -L --verbose "https://static.realm.io/downloads/core/realm-core-0.94.0.tar.bz2" -o $TMPDIR/core_bin/core-0.94.0.tar.bz2

But, I get the same error... Any ideas?? is there another way?? please. Thanks in advanced

Upvotes: 2

Views: 1718

Answers (2)

nathanwhy
nathanwhy

Reputation: 6144

You should download core via url first:

curl https://static.realm.io/downloads/core/realm-core-1.0.1.tar.bz2 -O
mkdir $TMPDIR/core_bin
mv realm-core-1.0.1.tar.bz2 $TMPDIR/core_bin

Upvotes: 0

Erik Hermans
Erik Hermans

Reputation: 11

Try one of two methods.
1) Clean Xcode cache. Menu > Product > Clean
2) Remove temporary download folder. In terminal run ( rm -rf /tmp/core_bin ) and reinstall pod by "pod install"

Upvotes: 1

Related Questions