how to solve the error of linker command failed with exit code 1 (use -v to see invocation)

I got one error when I run my app. The error is linker command failed with exit code 1 (use -v to see invocation).

The error shows me that there are 2 duplicate symbols for architecture x86_64.

I could not find a solution. How can I fix this?

i also put that screenshot of error in xcode

Please help me for this issue.

Upvotes: 0

Views: 155

Answers (1)

Phillip Mills
Phillip Mills

Reputation: 31016

It looks to me as if you have both 2.0 and 3.0 AFNetworking in your project. I don't see AFURLConnectionOperation in the 3.0 source but your link log shows it in conflict with AFURLRequestSerialization, which is in 3.0.

In fact, the github migration guide says:

The following classes have been removed from AFNetworking 3.0:

AFURLConnectionOperation

AFHTTPRequestOperation

AFHTTPRequestOperationManager

Upvotes: 3

Related Questions