RbSwift icon indicating copy to clipboard operation
RbSwift copied to clipboard

Please update pod.

Open muizidn opened this issue 5 years ago • 0 comments

Although

public static func chdir<T>(_ path: String = "~", closure: (() -> T)) -> T {
        let pwd = Dir.pwd
        Dir.chdir(path)
        let result = closure()
        Dir.chdir(pwd)
        return result
 }

But if you install through Pod it still

public static func chdir<T>(_ path: String = "~", closure: ((Void) -> T)) -> T {
        let pwd = Dir.pwd
        Dir.chdir(path)
        let result = closure()
        Dir.chdir(pwd)
        return result
}

Which in Swift 4 or later will generate error since it must pass tuple () to closure.

muizidn avatar Apr 11 '19 08:04 muizidn