致命错误:顶级错误:Shout.LibSSH2Error.error(-16)

时间:2017-11-06 10:21:04

标签: swift ssh fatal-error

我正在尝试在我的ios应用程序中使用此包https://github.com/jakeheis/Shout,但是当我构建它时,我收到以下错误:

Fatal error: Error raised at top level: Shout.LibSSH2Error.error(-16): file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-900.0.69.2/src/swift/stdlib/public/core/ErrorType.swift, line 187
Illegal instruction: 4

我的main.swift

import Shout

let session = try SSH.Session(host: "35.18.24.25")
try session.authenticate(username: "taqo4", privateKey: "~/dora", passphrase: "demo")

let (status, output) = try session.capture("pwd")

print("status: \(status)")
print("output: \(output)")

我需要做/安装或使用Shout包吗?

提前致谢!

0 个答案:

没有答案