Skip to content

Instantly share code, notes, and snippets.

@fiznool
Created October 30, 2018 11:59
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiznool/739b8e592596b5731512edfd77a1a2e9 to your computer and use it in GitHub Desktop.
Save fiznool/739b8e592596b5731512edfd77a1a2e9 to your computer and use it in GitHub Desktop.
Fixes the third party dependency issues introduced by Xcode 10's new build system.
#!/usr/bin/env bash
# Fix the third party mess. Run this after a `npm/yarn` install.
# This has (hopefully) been addressed by https://github.com/facebook/react-native/pull/21458,
# but at the time of writing (30/10/18) has not been merged into an official RN release.
echo "Fixing React Native third party folder..."
rm -rf ~/.rncache
WD=$(pwd)
cd node_modules/react-native
rm -fr third-party
$WD/node_modules/react-native/scripts/ios-install-third-party.sh
@c-harding
Copy link

Hi, would you be able to fix this to support working directories with spaces in them?

@c-harding
Copy link

I think just replacing $WD with "$WD" on the final line fixes it

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