代码之家  ›  专栏  ›  技术社区  ›  Ed of the Mountain

realmReactExample入门-没有这样的文件GCDWebServerRequest.m时出错?

  •  0
  • Ed of the Mountain  · 技术社区  · 10 年前

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

    遵循此处记录的步骤: 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 回复  |  直到 10 年前
        1
  •  1
  •   Ed of the Mountain    10 年前

    没关系,我失踪了 git子模块更新。

    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/

    推荐文章