Postal icon indicating copy to clipboard operation
Postal copied to clipboard

:-1: linker command failed with exit code 1 (use -v to see invocation)

Open hmelino opened this issue 6 years ago • 2 comments

My project crash with this error code :-1: linker command failed with exit code 1 (use -v to see invocation)

its brand new project with only Postal implemented and 1 function to ''connect''. Could anybody please help

import UIKit
import Postal

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        postaloTest()
    }
    
    let login = "[email protected]"
    let password = "password123"

    func postaloTest (){
        let postal = Postal(configuration: .icloud(login: login, password: password))
        postal.connect { result in
            switch result {
            case .success:
                print("success")
            case .failure(let error):
                print("error: \(error)")
                
            }
        }
    }

}

hmelino avatar Mar 22 '19 17:03 hmelino

Hello, I had a similar issue when I was working on #85 and fixed it. Could you give a try? Note that I haven't yet made a release, therefore the fix isn't yet available on Cocoapod. Thanks.

klefevre avatar May 03 '19 12:05 klefevre

Hello klefevre. Thank you for fix, however I am unable to test it as I am quite new to Swift and over last few days I have been trying to manually implement Postal to my Xcode project, but always failed with new error. Hopefully Cocoapods version will be released soon :)

hmelino avatar May 13 '19 20:05 hmelino