shaqian / react-native-ssh-sftp

SSH/SFTP client for React Native
https://www.npmjs.com/package/react-native-ssh-sftp
MIT License
62 stars 52 forks source link

NMSSHSession init error #3

Closed assertchris closed 5 years ago

assertchris commented 5 years ago

Hey. Thanks for putting this library together.

Earlier, I tried to install it, using the Pod instructions; and encountered an error. It was on the line:

_session = [[NMSSHSession alloc] init];

It seems the most recent version of NMSSH doesn't allow the init function to be called. I got around this error by downgrading to the version of NMSSH I saw the example was using. I'm not too familiar with how Podfiles work, but I was wondering if there was a way to set an upper limit for the version of a pod.

If it's possible, I'm happy to submit a PR with the change.

shaqian commented 5 years ago

Hi Chris, Thank you for reporting the issue. I will take a look within this week.

Kunalpaul12 commented 5 years ago

Use this version of NMSSH in pod pod 'NMSSH', '2.2.8'

shaqian commented 5 years ago

Thanks. I have updated the docs to use fixed version of NMSSH.

shaqian commented 5 years ago

Temporarily archiving the thread. Feel free to reopen if you still have the issue.