Skip to content

Instantly share code, notes, and snippets.

@stigi
Created October 24, 2018 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stigi/bace0809ef428a70fb1afe43a401224e to your computer and use it in GitHub Desktop.
Save stigi/bace0809ef428a70fb1afe43a401224e to your computer and use it in GitHub Desktop.
Fixes Xcode 10 builds for older react native issues.
#!/bin/sh
# Make sure node packages are there
yarn
# 1st fix: glog config.h not found
# Manually trigger 3rd party installs
cd node_modules/react-native
./scripts/ios-install-third-party.sh
# Manually trigger glog configure
cd third-party/glog-0.3.4/
../../scripts/ios-configure-glog.sh
cd ../..
# 2nd fix: libfishhook.a reference in RCTWebSocket
# Apply libfishhook.a fix from https://github.com/facebook/react-native/pull/19579
curl https://github.com/facebook/react-native/commit/293915091ca6c9de2c54681e78eecf3229bc05d5.patch | patch -p1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment