React Native 项目创建中出现的问题及解决记录

info Installing required CocoaPods dependencies,一直卡在这里,怎么办?

等待了很久,等待中参考了以下建议:

0.60 及以上版本依赖CocoaPods安装。CocoaPods的仓库在国内也很难访问。如果在CocoaPods的安装步骤卡很久,可以试一下这个国内镜像

[CocoaPods 镜像使用帮助](https://mirror.tuna.tsinghua.edu.cn/help/CocoaPods/)


参考内容界面

$ cd ~/.cocoapods/repos

$ pod repo remove master

$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master

还在remove中,突然出现了下面内容。(记录如下,后续好参考。)

Run instructions for iOS:

    • cd "/Volumes/Work/WorkSpace/FirstProject" && npx react-native run-ios

    - or -

    • Open FirstProject/ios/FirstProject.xcworkspace in Xcode or run "xed -b ios"

    • Hit the Run button

  Run instructions for Android:

    • Have an Android emulator running (quickest way to get started), or a device connected.

    • cd "/Volumes/Work/WorkSpace/FirstProject" && npx react-native run-android

  Run instructions for Windows and macOS:

    • See https://aka.ms/ReactNative for the latest up-to-date instructions.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。