No member named '__rip' in '__darwin_arm_thread_state64

版权声明:本文为博主原创文章,未经博主允许可以转载,但转载时请附上原文地址: https://blog.csdn.net/youshaoduo/article/details/86231961

打开node_modules/react-native/third-party/glog-0.3.4/src/config.h文件
或者直接在工程中搜PC_FROM_UCONTEXT定义的地方。

替换

/* How to access the PC from a struct ucontext */
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip


为:

/* How to access the PC from a struct ucontext */
#if defined(__arm__) || defined(__arm64__)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__pc
#else
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
#endif

然后重新编译。
不得不说RN全是坑啊。。光编译过就要费一番功夫.

猜你喜欢

转载自blog.csdn.net/youshaoduo/article/details/86231961
RIP