Realm-js: Why it needs download the core when building project on Xcode?

Created on 17 Aug 2017  路  4Comments  路  Source: realm/realm-js

Hi, everyone, the past few days I am trapped by the problem -- can not install the realm with RN0.47.1, finally I had switch the network and install it. But now, I find another problem on the way to use Realm.

When I am build the project, it will stuck on this steps,

Downloading dependency: core 2.8.6

https://static.realm.io/downloads/core/realm-core-2.8.6.tar.xz

Does there exist the manual config tutorial? Does there exits another way to download this file and add&install it on my project?

In China ,there has much developers using RN and Realm, but because the gov's firewall , we can't access much resources conveniently锛宻o it will be very helpful that has different way to install Realm.

O-Community Pipeline-Idea-Backlog T-Internal

Most helpful comment

@guoliang1206 I don't think it's resulted from the GFW. On the contrary, I think it's an issue of the CDN used by realm(possibly, just my guess). Cause I found:

  1. Often the download progress is really fast in the middle night but extremely slow during the daylight.
  2. If you directly download the link 'https://static.realm.io/downloads/core/realm-core-2.8.6.tar.xz', you'll find it is not so slow.

So, you may do as I did always.

  1. Directly download the realm-core-2.8.6.tar.xz and realm-sync-cocoa-1.10.5.tar.xz (It's more bigger than the former :) ) and store them
  2. Once you upgrade, you can key 'open $TMPDIR' in your terminal window and open the temporary folder
  3. Copy 'realm-core-2.8.6.tar.xz' to the 'core' directory and 'realm-sync-cocoa-1.10.5.tar.xz' to the 'sync'
  4. Run

All 4 comments

@guoliang1206 Thank you for providing the explanation as we see issues like this from time to time. We are aware of the challenges, but we have not yet an alternative method.

I met the same issue

@guoliang1206 I don't think it's resulted from the GFW. On the contrary, I think it's an issue of the CDN used by realm(possibly, just my guess). Cause I found:

  1. Often the download progress is really fast in the middle night but extremely slow during the daylight.
  2. If you directly download the link 'https://static.realm.io/downloads/core/realm-core-2.8.6.tar.xz', you'll find it is not so slow.

So, you may do as I did always.

  1. Directly download the realm-core-2.8.6.tar.xz and realm-sync-cocoa-1.10.5.tar.xz (It's more bigger than the former :) ) and store them
  2. Once you upgrade, you can key 'open $TMPDIR' in your terminal window and open the temporary folder
  3. Copy 'realm-core-2.8.6.tar.xz' to the 'core' directory and 'realm-sync-cocoa-1.10.5.tar.xz' to the 'sync'
  4. Run

@adyanced thanks for your solution,I will try it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CrystalRanita picture CrystalRanita  路  3Comments

laznrbfe picture laznrbfe  路  3Comments

ashah888 picture ashah888  路  3Comments

ugendrang picture ugendrang  路  3Comments

kontinuity picture kontinuity  路  3Comments