开始使用领域ReactExample - 错误没有这样的文件GCDWebServerRequest.m?

时间:2016-02-22 18:45:14

标签: react-native realm

在研究嵌入式数据库的选项以用于我的第一个本机应用程序时,我遇到了领域。

按照此处记录的步骤操作: https://realm.io/docs/react-native/latest/#examples

我输入了以下命令:

git clone https://github.com/realm/realm-js.git
cd realm-js/examples/ReactExample
npm install

当我打开ReactExample.xcodeproj并尝试构建时:

clang: error: no such file or directory: '/Users/edward3/Documents/projects/react-native/realm/realm-js/vendor/GCDWebServer/GCDWebServer/Core/GCDWebServerRequest.m'
clang: error: no input files

我错过了什么?

1 个答案:

答案 0 :(得分:1)

没关系,我错过了 git submodule update。

git clone https://github.com/realm/realm-js.git
git submodule update --init --recursive
cd realm-js/examples/ReactExample
npm install

我很高兴学习使用领域。乍一看,与反应原生的sqlite示例相比,这个领域的例子似乎很容易学习。

https://realm.io/news/introducing-realm-react-native/