react native 5.54 出ios版本遇到的坑(应该是在xcode10下才会有的吧)记录。。。。。。 听说5.7已经修复了

 

1. config.h找不到
rm -r ~/.rncache/
cd node_modules/react-native/third-party/glog-0.3.4/
./configure --host arm-apple-darwinnode

2. 编译不过的时候 执行完第一步 第二部到glog的src文件下找config.h 而后修改以下  
#if defined(__x86_64__)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
#elif defined(__i386__)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip
#endifreact

3. 打离线包 (目前没用到 直接裸奔的)ios

react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ./ios/bundle/index.ios.jsbundle --assets-dest ./ios/bundleweb


。。。
websocket.proj 删除 从新添加 libfishhook.a

libcodepush.a 会重复 !!!操蛋 记得去工程里面找到 把 products 目录以外的那个干掉react-native

相关文章
相关标签/搜索