react-native ios No member named '__rip' in '__darwin_arm_thread_state64

Open node_modules / react-native / third- party / glog-0.3.4 / src / config.h file
or local search PC_FROM_UCONTEXT defined directly in the project.

Will be here

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

Replace with:

/* 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

 

Guess you like

Origin www.cnblogs.com/bruce-gou/p/11113143.html