Skip to content

Instantly share code, notes, and snippets.

@lewtds
Last active September 26, 2018 07:17
Show Gist options
  • Save lewtds/07a1e34c3f6d2c0d28f75bd472e858b3 to your computer and use it in GitHub Desktop.
Save lewtds/07a1e34c3f6d2c0d28f75bd472e858b3 to your computer and use it in GitHub Desktop.

Xcode 10 introduces a new build system and breaks a few libraries that RN depends on. The known issues are tracked here: facebook/react-native#19573 and hopefully patches will be available in the next release.

Meanwhile, you can follow the manual workarounds here.

glog (config.h missing)

cd node_modules/react-native/third-party/glog-0.3.4 
./configure

No member named '__rip' in '__darwin_arm_thread_state64'

Opens node_modules/react-native/third-party/glog-0.3.4/src/signalhandler.cc and apply this patch:

--- org.cc	2018-09-25 10:49:50.000000000 +0300
+++ node_modules/react-native/third-party/glog-0.3.4/src/signalhandler.cc	2018-09-25 00:18:17.000000000 +0300
@@ -75,7 +75,7 @@
 #if (defined(HAVE_UCONTEXT_H) || defined(HAVE_SYS_UCONTEXT_H)) && defined(PC_FROM_UCONTEXT)
   if (ucontext_in_void != NULL) {
     ucontext_t *context = reinterpret_cast<ucontext_t *>(ucontext_in_void);
-    return (void*)context->PC_FROM_UCONTEXT;
+    return NULL;
   }
 #endif
   return NULL;

(This function is for dumping CPU state when the app has to die after getting a signal. We can live without it.)

Build input cannot be found '[...]libfishhook.a'

Expand your project tree in Xcode > Libraries > RCTWebSocket.xcodeproj > Build Phases > Link Binary With Libraries, remove libfishhook.a then add it back again.

screen shot 2018-09-25 at 0 20 12

screen shot 2018-09-25 at 0 20 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment