我正在使用Expo
,我分开expo eject
用于模块使用。
我pod install
在iOS文件中尝试过。这是工作。
Pod安装完成!Pod 文件中有 51 个依赖项,总共安装了 63 个 Pod。
但是当Xcode
打开并build and run
按下按钮时发生错误。
包.json:
{
"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
过,所以我是初学者。请详细说明。如果您能用屏幕截图解释一下,我将不胜感激。
我podsec
自己做了一个并解决了它。
这不在官方文档中,需要模块开发人员提供基本解决方案。
此解决方案创建了很多Warning
. 代码没有任何问题。
react-native-secure-randombytes
从标题搜索路径中删除路径react-native-secure-randombytes
模块 - react-native unlink react-native-secure-randombytes将下一个代码添加到 pod 文件中:
pod 'react-native-secure-randombytes', :path => '../node_modules/react-native-secure-randombytes'
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句