No member named rip in darwin_arm_thread_state64


Xcode10でReactNativeをコンパイルし、有線経由で端末にアプリをインストールしようとしたら発生しました。

エラーが出ている行(signalhandler.cc)を編集することで解決しました。

# この行でエラーが出ている
return (void*)context->PC_FROM_UCONTEXT;  
# 上の行を下の行のように書き換えるする
return (void*)context->uc_mcontext->__ss.__pc

参考 Problem with third-party in Xcode 10 building to iOS physical device : (https://github.com/facebook/react-native/issues/19839)