Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct usage of NMSSH in Swift iOS Application #104

Closed
svenover opened this issue Nov 4, 2014 · 3 comments
Closed

Correct usage of NMSSH in Swift iOS Application #104

svenover opened this issue Nov 4, 2014 · 3 comments

Comments

@svenover
Copy link

svenover commented Nov 4, 2014

Hello,

I follow the instruction to build the NMSSH.framework. All was build successfully with Xcode 6.1.

Then I tried to add the framework to my simple swift ios app as described in the manual.

  1. Add file NMSSH.framework to the project
  2. Add the needed libraries (NMSSH.framework, libz.dylib, CFNetwork.framework) to the Build Phases - Link Binary With Libraries
    So far it worked well.
    My problem is the following one which caused an error.
    Add #import <NMSSH/NMSSH.h> to your source file.
    Please see screenshot for the error.
    image
    I also tried the fix without success.

I hope anyone can help me to add the NMSSH.framework to my swift ios app.

With Xcode 5 all was working fine for me.

Many thanks in advance.
Sven

@Lejdborg
Copy link
Collaborator

Lejdborg commented Nov 5, 2014

With Swift you need to add a bridging header and import Foundation and NMSSH.

@Lejdborg Lejdborg closed this as completed Nov 5, 2014
@svenover
Copy link
Author

svenover commented Nov 5, 2014

ok, I understand.

I tried it but I'm not familiar with it. Do you have a simple swift project in which you add the NMSSH framework in order to understand the implementation.

That will be great. My skills with Xcode and swift are very poor.

Many thanks in advance.
Sven

@federom
Copy link

federom commented Jan 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants