1.如遇到以下错误
Failed to launch emulator. Reason: No emulator found as an output of emulator -list-avds
即使你正确配置了emulator,还是报以上错误,可通过以下方式解决:
往~/.zshrc文件中添加一下内容
source ~/.bash_profile
2.错误如下
解决方式:
找到android/app/build.gradle
查找splits{}里的内容 include是否包含"x86", "arm64-v8a", "x86_64"这些CPU架构
3.错误如下
directory not found for option '-L/Users/szt/Library/Developer/Xcode/DerivedData/pkpmViewerApp-gmmrqcbdrnrbgogughofyqqxsmfn/Build/Products/Debug-iphoneos/react-native-static-server'
ld: library not found for -lreact-native-static-server
解决方式:
打开XCode工程
Build Settings -> Library Search Paths 删除对应库的编译路径
"${PODS_CONFIGURATION_BUILD_DIR}/react-native-static-server"