Error when building for device
Closed this issue · 3 comments
smoi commented
I'm using this method to get an object named "data"
.responseObject("data") { (response: Response) in
everything works fine if I build for the simulator but when I try to build for device i get this error
Missing argument label 'queue:' in call
It's like it is using a different kind of method that requires a queue.
tristanhimmelman commented
Alamofire now requires new parameter keywords. In your case, you need to insert keyPath:
. It should look like:
.responseObject(keyPath: "data") { (response: Response) in
smoi commented
Why if I build for simulator I don't get this error and if I build for device I get it?
If I try to put the keypath i'm not able to build for simulator
tristanhimmelman commented
It shouldn't be any different. You might need to clean your project.