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.
cd node_modules/react-native/third-party/glog-0.3.4
./configure
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.)
Expand your project tree in Xcode > Libraries > RCTWebSocket.xcodeproj > Build Phases > Link Binary With Libraries, remove libfishhook.a then add it back again.