From bb0a6ecdcafd7ddfecbe91e7e481968ee22a09c0 Mon Sep 17 00:00:00 2001 From: blagoev Date: Mon, 16 Oct 2017 21:47:49 +0300 Subject: [PATCH] enable xcode nvm support --- src/RealmJS.xcodeproj/project.pbxproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RealmJS.xcodeproj/project.pbxproj b/src/RealmJS.xcodeproj/project.pbxproj index ec260665..7670c018 100644 --- a/src/RealmJS.xcodeproj/project.pbxproj +++ b/src/RealmJS.xcodeproj/project.pbxproj @@ -888,7 +888,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "node ../scripts/download-realm.js ios --sync"; + shellScript = "[ -z \"$NVM_DIR\" ] && export NVM_DIR=\"$HOME/.nvm\"\n\nif [[ -s \"$HOME/.nvm/nvm.sh\" ]]; then\n . \"$HOME/.nvm/nvm.sh\"\nelif [[ -x \"$(command -v brew)\" && -s \"$(brew --prefix nvm)/nvm.sh\" ]]; then\n . \"$(brew --prefix nvm)/nvm.sh\"\nfi\n\nnode ../scripts/download-realm.js ios --sync"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */