1. config.h not found

解決:
$ rm -rf ~/.rncache
$ cd node_modules/react-native/third-party/glog-0.3.4/
$ ./configure
2. WebSocket / libfishhook.a 鏈接文件未找到
error:Build input file cannot be found:‘/Users/.../Libraries/WebSocket/libfishhook.a’__

選中 Libraries - RCTWebSocket.xcodeproj - RCTWebSocket - libfishhook.a 移除重新添加

3. library not found for -lstdc++.6.0.9 庫未找到__
ld: library not found for -lstdc++.6.0.9
clang: error :linker command failed with exit code 1 (use -v to see invocation)
Xcode 10 中移除了 “-libstdc++.6.0.9” 庫,需要在舊版Xcode 9 中查找到“-lstdc++.6.0.9”庫之后,復制一份放入Xcode 10 lib庫中。
復制到:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib

如果用真機和者模擬器編譯運行,請在iPhoneOS.platform(真機)和iPhoneSimulator.platform(模擬器)兩個文件下的lib文件夾分別添加libstdc++6.0.9tbd和libstdc++.6.tbd兩個文件。

clean - 重新編譯
4. 構建時報 PC_FROM_UCONTEXT 未定義

command 左擊進到這個宏定義部分,將原來的 PC_FROM_UCONTEXT 宏定義替換為
#undef HAVE_UCONTEXT_H
#undef PC_FROM_UCONTEXT
#if defined(__x86_64__)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
#elif defined(__i386__)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip
#endif
