硬件开发环境:Mac电脑
1.按照react-native中文文档进行安装
https://reactnative.cn/docs/getting-started/
2.iso报错
2.1 运行react-native run-ios报错Error: Could not find iPhone X simulator
由于没有找到iPhone X模拟器,不清除为啥XCode并没有自带
解决办法:react-native run-ios --simulator="iPhone 8"
2.2 error Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65
解决办法:
- cd /ios
- run
pod install
- cd ..
- delete build folder
- run
react-native run-ios