Can't build on iOS due supporting "n" version manager
See original GitHub issueGoals
Fix issue with shellScript
Need to revert this PR https://github.com/realm/realm-js/pull/2078
Expected Results
Build and Run iOS app
Actual Results
RealmJS requires a node package manager (n or nvm).
Command /bin/sh failed with exit code 1
Steps to Reproduce
Replace shellScript in file src/RealmJS.xcodeproj on line 863 with code before PR:
shellScript = "if [[ -d \"$HOME/.asdf/shims\" ]]; then\n export PATH=$HOME/.asdf/shims:$PATH\nfi\n\n[ -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 \nif [[ \"$(command -v nvm)\" ]]; then\n nvm install 7.10.0\nfi\n \n node ../scripts/download-realm.js ios --sync";
It works
Version of Realm and Tooling
- Realm JS SDK Version: 2.19
- Node or React Native: Node 10.13, ReactNative 0.57.4
- Client OS & Version: MacOS 10.13
Issue Analytics
- State:
- Created 5 years ago
- Reactions:10
- Comments:25 (8 by maintainers)
Top Results From Across the Web
Not able to install enterprise build in iOS 15 beta version
After updating the os, not able to install the enterprise app through ipa, it throws error unable to install the app. Also not...
Read more >Xcode building for iOS Simulator, but linking in an object file ...
I have pulled the new beta of CocoaPods with Xcode 12 support (currently 1.10.0.beta 2). Pod install is successful. When I do a...
Read more >Troubleshooting iOS/iPadOS device enrollment errors in ...
Suggestions for troubleshooting some of the most common enrollment and sync token errors when enrolling iOS/iPadOS devices in Intune.
Read more >nvm-sh/nvm: Node Version Manager - POSIX-compliant bash ...
For OS X, Xcode will work, for Debian/Ubuntu based GNU/Linux, the build-essential and libssl-dev packages work. Note: nvm also support Windows in some...
Read more >So, Xcode doesn't support your iPhone's OS version ... - Medium
I was working on a project which was built using Xcode 12.4 due to ... my device is an unsupported version of iOS...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@shubham1164 or just rewrite line
863
withshellScript = "node ../scripts/download-realm.js ios --sync";
@kneth any progress of this? I know it is paused due test issues https://github.com/realm/realm-js/pull/2109 . Quick hot fix should be removing
exit
statement. It will work like before merging commit but still support ofn