SwiftSH icon indicating copy to clipboard operation
SwiftSH copied to clipboard

SwiftSH in iOS Simulator

Open jpalten opened this issue 6 years ago • 5 comments

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?

jpalten avatar Jun 18 '18 19:06 jpalten

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?

Frugghi avatar Jun 18 '18 20:06 Frugghi

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.

jpalten avatar Sep 05 '18 09:09 jpalten

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.

Frugghi avatar Sep 05 '18 14:09 Frugghi

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 avatar Sep 05 '18 15:09 jpalten

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.

jpalten avatar Oct 09 '18 10:10 jpalten