Run install third party script as part of the xcode build

Summary:
Runs the `./ios-install-third-party.sh` script as part of the build process to avoid having to do it manually when building the cxx bridge with xcode. Also added the third-party dir to gitignore.

**Test plan**
Tested that just building works when the third-party dir is missing.
Closes https://github.com/facebook/react-native/pull/12694

Differential Revision: D4658165

Pulled By: ericvicenti

fbshipit-source-id: 9b51b88eb26637b19266bf85deafa41e3a77a645
This commit is contained in:
Janic Duplessis 2017-03-05 23:59:18 -08:00 committed by Facebook Github Bot
parent c535c263c6
commit 7d06c35d1c
2 changed files with 17 additions and 0 deletions

2
.gitignore vendored
View File

@ -54,3 +54,5 @@ node_modules
# Test generated files
/ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
*.js.meta
/third-party

View File

@ -2976,6 +2976,7 @@
isa = PBXNativeTarget;
buildConfigurationList = 139D7E8E1E25C6D100323FB7 /* Build configuration list for PBXNativeTarget "double-conversion" */;
buildPhases = (
190EE32F1E6A43DE00A8543A /* Install Third Party */,
139D7E841E25C6D100323FB7 /* Sources */,
139D7E851E25C6D100323FB7 /* Frameworks */,
139D7E861E25C6D100323FB7 /* CopyFiles */,
@ -3243,6 +3244,20 @@
shellScript = "if [[ \"$CONFIGURATION\" == \"Debug\" ]] && [[ -d \"/tmp/RCTJSCProfiler\" ]]; then\n find \"${CONFIGURATION_BUILD_DIR}\" -name '*.app' | xargs -I{} sh -c 'cp -r /tmp/RCTJSCProfiler \"$1\"' -- {}\nfi";
showEnvVarsInLog = 0;
};
190EE32F1E6A43DE00A8543A /* Install Third Party */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Install Third Party";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd $SRCROOT/..\n./ios-install-third-party.sh";
};
2D6948201DA3042200B3FA97 /* Include RCTJSCProfiler */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;