question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't build on iOS due supporting "n" version manager

See original GitHub issue

Goals

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:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:25 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
radenocommented, Nov 12, 2018

@shubham1164 or just rewrite line 863 with shellScript = "node ../scripts/download-realm.js ios --sync";

3reactions
radenocommented, Nov 26, 2018

@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 of n

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found