From 2cf223380ab3984002e8e37ef6ea1631e909e56f Mon Sep 17 00:00:00 2001 From: Jorge Bernal Date: Thu, 8 Nov 2018 08:28:37 +0100 Subject: [PATCH] Workaround to make yarn ios work with Xcode 10 It seems the issue is that Xcode is not automatically downloading required dependencies, so this adds a preios step to download them before trying to build the app. See https://github.com/facebook/react-native/issues/20774 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4eeef61470..081e85db72 100644 --- a/package.json +++ b/package.json @@ -55,8 +55,9 @@ "android": "react-native run-android", "prewpandroid": "rm -Rf $TMPDIR/gbmobile-wpandroidfakernroot && mkdir $TMPDIR/gbmobile-wpandroidfakernroot && ln -s $(cd \"$(dirname \"../../../\")\"; pwd) $TMPDIR/gbmobile-wpandroidfakernroot/android", "wpandroid": "yarn android --root $TMPDIR/gbmobile-wpandroidfakernroot --variant wasabiDebug --appIdSuffix beta --appFolder WordPress --main-activity=ui.WPLaunchActivity", - "preios": "yarn preios:carthage", + "preios": "yarn preios:xcode10 && yarn preios:carthage", "preios:carthage": "cd react-native-aztec && yarn install-aztec-ios", + "preios:xcode10": "cd node_modules/react-native && ./scripts/ios-install-third-party.sh && cd third-party/glog-0.3.5 && [ -f libglog.pc ] || ../../scripts/ios-configure-glog.sh", "ios": "react-native run-ios", "test": "cross-env NODE_ENV=test node node_modules/jest/bin/jest.js --verbose --config jest.config.js", "test:inside-gb": "cross-env NODE_ENV=test node node_modules/jest/bin/jest.js --verbose --config jest_gb.config.js",