换了一台苹果就出错,没搞懂是哪里出了问题

来源:17-1 本章作业(带着3个问题去学习)

钳钳123

2019-10-16

图片描述
“axios”: “^0.18.0”,
“fundebug-reactnative”: “^0.1.1”,
“moment”: “^2.22.2”,
“prettier”: “^1.15.2”,
“react”: “^16.3.1”,
“react-native”: “^0.55.4”,
“react-native-amap3d”: “^1.1.1”,
“react-native-datepicker”: “^1.7.2”,
“react-native-iphone-x-helper”: “^1.2.0”,
“react-native-map-linking”: “^1.0.1”,
“react-native-md5”: “^1.0.0”,
“react-native-puti-pay”: “^1.3.0”,
“react-native-render-html”: “^4.1.2”,
“react-native-smscode-count-down”: “^0.1.14”,
“react-native-splash-screen”: “^3.1.1”,
“react-navigation”: “^2.18.2”,
“react-redux”: “^5.1.1”,
“redux”: “^4.0.1”,
“redux-logger”: “^3.0.6”,
“redux-persist”: “^5.10.0”,
“redux-thunk”: “^2.3.0”,
“teaset”: “^0.5.9”

写回答

1回答

CrazyCodeBoy

2019-10-16

  1. 换了电脑之后首先要检查下RN环境有没有配置好,可以通过新创建一个RN项目然后看能否正常运行来检查;

  2. 如果上述方法OK,那么删除项目的node_modules然后关闭所有终端,打开项目根目录运行:

npm install
cd ios 
pod install

然后在运行项目。

1
1
钳钳123
还是不行,bash错误是下面这些,想知道怎么解决? /bin/sh -c /Library/proj/ShareCar/ios/build/Build/Intermediates.noindex/ShareCar.build/Debug-iphonesimulator/ShareCar.build/Script-00DD1BFF1BD5951E006B06BC.sh /Library/proj/ShareCar/ios/build/Build/Intermediates.noindex/ShareCar.build/Debug-iphonesimulator/ShareCar.build/Script-00DD1BFF1BD5951E006B06BC.sh: line 3: ../node_modules/react-native/packager/react-native-xcode.sh: No such file or directory ** BUILD FAILED ** The following build commands failed: PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images build/Build/Intermediates.noindex/ShareCar.build/Debug-iphonesimulator/ShareCar.build/Script-00DD1BFF1BD5951E006B06BC.sh (1 failure) Installing build/Build/Products/Debug-iphonesimulator/ShareCar.app Launching org.reactjs.native.example.ShareCar org.reactjs.native.example.ShareCar: 73986
2019-10-17
共1条回复

RN入门到进阶,打造高质量上线App

解锁React Native开发应用新姿势,React Native新版本热门技术

3144 学习 · 3241 问题

查看课程