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

Xcode 12 / Swift 5 - Build Errors #37

Open
matthewlprice opened this issue Jun 25, 2020 · 2 comments
Open

Xcode 12 / Swift 5 - Build Errors #37

matthewlprice opened this issue Jun 25, 2020 · 2 comments

Comments

@matthewlprice
Copy link

Swift Compiler Error Group
~/SSHCommands.swift:15:5: Value of optional type 'SSHShell?' must be unwrapped to refer to member 'withCallback' of wrapped base type 'SSHShell'
~/SSHCommands.swift:26:5: Value of optional type 'SSHShell?' must be unwrapped to refer to member 'write' of wrapped base type 'SSHShell'
~/SSHCommands.swift:32:5: Value of optional type 'SSHShell?' must be unwrapped to refer to member 'disconnect' of wrapped base type 'SSHShell'
~/SSHCommands.swift:32:22: Missing argument for parameter #1 in call
~//Pods/SwiftSH/SwiftSH/Libssh2.swift:333:119: Value of optional type 'UnsafePointer?' must be unwrapped to a value of type 'UnsafePointer'

This is in a fresh project just to test before implementing in my working project. I changed the swift version from 5 to 4.2 then to 4 and got this error:

~/Pods/SwiftSH/SwiftSH/Libssh2.swift:333:119: Value of optional type 'UnsafePointer?' must be unwrapped to a value of type 'UnsafePointer'

@stephaneworkspace
Copy link

for compile change at ligne 333

let response = LIBSSH2_USERAUTH_KBDINT_RESPONSE(text: strdup(password), length: UInt32(strlen(password!)))

@iOSbug
Copy link

iOSbug commented Nov 9, 2021

Can the author update the library to solve the problem on swift5? Although I already know how to solve it, it's still troublesome to modify it every time.

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