Frugghi / SwiftSH

A Swift SSH framework that wraps libssh2.
MIT License
195 stars 74 forks source link

SwiftSH in iOS Simulator #11

Open jpalten opened 6 years ago

jpalten commented 6 years ago

For some reason SwiftSH won't run in the simulator on my machine. Any idea why not? Does that work on your machine? Any ideas how to fix that?

Frugghi commented 6 years ago

The binary of libssh2 included in this repo doesn't include i386 architecture, maybe that's the issue? Are you able to compile and run on the simulator the example included in the repo?

jpalten commented 6 years ago

I tried the sample in the repo, same issue. I recompiled the libssh2 to include i386 and all is fine now. I did find some problems when there are multiple connections running at the same time, and tried to debug that. Found out that the write event doesn't always happen, which is odd.

Only in simulator though, on the device there seems to be no issue.

Frugghi commented 6 years ago

Are you using an iPhone 5 or earlier simulator? I can recompile the library including i386, I excluded it just to speed up the compilation and to reduce the library size.

jpalten commented 6 years ago

I'm using the iPad Air 2 (10.0) simulator. It would be nice to include i386 in the library to be able to use SwiftSH in the simulator out-of-the-box.

jpalten commented 6 years ago

I can recompile the library including i386, I excluded it just to speed up the compilation and to reduce the library size. It would be great if you could do that.