You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We XCode run a script with /bin/sh it sets a custom PATH env var which doesn't include asdf shims and the node command installed by asdf is not found as you can see below in "Actual Results".
To support ASDF I added this to the "Download Core" build phase:
if [[ -d "$HOME/.asdf/shims" ]]; then
export PATH=$HOME/.asdf/shims:$PATH
fi
I'll submit a pull request
Expected Results
Build succeed.
Actual Results
/Users/nicolabrisotto/Library/Developer/Xcode/DerivedData/RealmJS-amkmngqitcyloggiqlpjufwqspfz/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/RealmJS.build/Script-F63FF2C51C12462600B3B8E0.sh: line 14: node: command not found
Command /bin/sh failed with exit code 127
Steps to Reproduce
Install nodejs with asdf and build src/RealmJS.xcodeproj
Version of Realm and Tooling
Realm JS SDK Version: v2.15.3
Node or React Native: node v8.12.0
Client OS & Version: OSX
The text was updated successfully, but these errors were encountered:
Goals
Our team use ASDF to manage node versions.
We XCode run a script with
/bin/sh
it sets a custom PATH env var which doesn't include asdf shims and thenode
command installed by asdf is not found as you can see below in "Actual Results".To support ASDF I added this to the "Download Core" build phase:
I'll submit a pull request
Expected Results
Build succeed.
Actual Results
Steps to Reproduce
Install nodejs with asdf and build
src/RealmJS.xcodeproj
Version of Realm and Tooling
The text was updated successfully, but these errors were encountered: