Search code examples
iosswiftalamofireswift3xcode8

Alamofire 4.0.1 Undefined symbols for architecture x86_64 xCode 8 SWIFT 3


My project worked perfectly with cocoapods 1.0.1 and Alamofire branch "swift3". But today i've updated cocoapods to 1.1.0 and updated alamofire to version 4.0.1 from Master branch and got linker error for x86-64 (simulator) build:

Undefined symbols for architecture x86_64: Alamofire.request (Alamofire.URLConvertible, method : Alamofire.HTTPMethod, parameters : [Swift.String : Any]?, encoding : Alamofire.ParameterEncoding, headers : [Swift.String : Swift.String]?) -> Alamofire.DataRequest", referenced from

protocol witness table for Swift.String : Alamofire.URLConvertible in Alamofire", referenced from:

But for device (arm targets) everything works well.

Tried to deintegrate pods, remove all scripts and folders and install again - but it didn't help.


Solution

  • Got the solution:

    Had to remove derivedData manually and restart xCode after clean.

    (Facepalm)