REACT NATIVE错误收集

作者: 猫先生的一天 | 来源:发表于2020-12-15 11:33 被阅读0次

Q1:

Build input file cannot be found: '/Users/xxx/Library/Developer/Xcode/DerivedData

  • A:X-Code 11.4 [File]->[Worksapce Settings]->[Per-User Workspace Settings]->build System 选择 Legacy Build System

Q2:

directory not found for option '-L-L/Users/xxx/Library/Developer/Xcode/DerivedData/Questionaire-grokfqiwdinmzodhwhvfuwgopznz/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket

Q3:

'React/RCTBridgeDelegate.h' file not found

  • 出现在React-native 0.60.0以后版本
  • 解决方案
- Install Cocoa Pods
sudo gem install cocoapods

- In your Project Folder
cd ios && pod install

Q4: React-native打包android后出现莫名的启动闪退现象

A: 根据报错信息定位问题

  • 将android手机连接到pc,打开usb调试模式
adb logcat --buffer=crash

logcat打印的报错信息如:
no non-static method "facebook/react/bridge/ReactCallback incrementPendingJSCalls”
大概定位为运行时缺少了brdige的一个方法,原因是混淆器混淆后找不到方法了,可以将ReactCallBack类加入proguard-rules.pro, 缺少哪个增加哪个
-keep class com.facebook.react.bridge.ReactCallback { *; }

------------------------------------后续持续更新之前记录的问题方案,欢迎大家有新的问题下方留言-----------------------------------------------------------

Q: CFBundleIdentifier", Does Not Exist
A: File -> WorkSpace settings -> Advanced - > Custome -> Relative to Workspace -> Products和Intermediates前添加build.


image.png
image.png

相关文章

网友评论

    本文标题:REACT NATIVE错误收集

    本文链接:https://www.haomeiwen.com/subject/fjaigktx.html