首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RCTBridgeModule.h中找不到RCTDefines.h文件

RCTBridgeModule.h中找不到RCTDefines.h文件
EN

Stack Overflow用户
提问于 2019-05-08 03:12:36
回答 1查看 1.2K关注 0票数 0

我使用Expo,并将expo eject分开用于模块使用。

我在iOS文件中尝试了iOS。那是工作。

吊舱安装完毕!Pod文件中有51个依赖项,总共安装了63个荚。

但是,当打开Xcode并按下build and run按钮时,会发生错误。

package.json:

代码语言:javascript
复制
{
  "name": "testgame",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "babel-cli": "6.26.0",
    "babel-plugin-module-resolver": "^3.1.1",
    "babel-preset-es2015": "6.24.1",
    "jest-expo": "27.0.0",
    "react-native-scripts": "1.14.0",
    "react-test-renderer": "16.3.1"
  },
  "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": {
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "android": "react-native-scripts android",
    "ios": "react-native-scripts ios",
    "test": "jest"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/vector-icons": "^8.1.0",
    "bignumber.js": "^8.1.1",
    "crypto-browserify": "^3.12.0",
    "eth-lightwallet": "^3.0.1",
    "ethereumjs-tx": "^1.3.7",
    "ethereumjs-util": "^6.0.0",
    "ethereumjs-wallet-react-native": "^0.6.7",
    "expo": "^30.0.0",
    "expokit": "^1.8.0",
    "formik": "^1.3.2",
    "js-sha3": "^0.8.0",
    "native-base": "^2.8.2",
    "node-libs-browser": "2.1.0",
    "react": "16.3.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz",
    "react-native-confirmation-code-input": "^1.0.4",
    "react-native-fast-crypto": "^1.8.1",
    "react-native-fetch-blob": "git+https://github.com/HCL-HO/react-native-fetch-blob-expo.git",
    "react-native-fs": "^2.13.3",
    "react-native-keychain": "^3.1.2",
    "react-native-pin-view": "^2.2.1",
    "react-native-secure-randombytes": "^3.0.0",
    "react-native-touch-id": "^4.4.1",
    "react-navigation": "3.0.4",
    "web3": "1.0.0-beta.34",
    "yup": "^0.26.6"
  }
}

Xcode版本: 10.2.1

我以前从未使用过Xcode,所以我是个初学者。请详细解释一下。如果你能用截图来解释的话,我会很感激的。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-05-08 09:04:07

我自己做了一个podsec并解决了它。

这并不在正式文档中,需要模块开发人员的基本解决方案。

这个解决方案创建了大量的Warning。密码没什么问题。

  1. 从头搜索路径中删除react-native-secure-randombytes路径
  2. 取消链接react-native-secure-randombytes模块-反应-本机解除链接反应-本机安全-随机字节
  3. 从这个链接中添加了本机本机安全随机的
  4. 将下一段代码添加到pod文件中: pod‘react本机-安全-随机字节’,:path => =>
  5. 做‘吊舱安装’
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56033002

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档