Daan
Daan

Reputation: 179

Include AFnetworking linker errors

Could anyone tell me what's going on?

I get 9 errors after including AFnetworking, see below.

http://i.imgur.com/2nd7LiU.png

http://i.imgur.com/YEyt1zi.png

Upvotes: 1

Views: 1055

Answers (2)

noobzilla
noobzilla

Reputation: 1155

I had a very similar issue and was seeing about 15 mach -0 linker compiler error messages. Adding the security framework reduced that # to 7 errors.

Did some more research and found that you might also need to add the SystemConfiguration.framework via xCode.

This completely resolved the issue for me.

As an FYI - I was using xCode 5, targeting iOS 7 and using AFNetworking version 2.0.

Adding as an answer, in case other people find that simply adding security.framework doesnt resolve things for them.

Thanks to Firoze above for the accepted answer.

Upvotes: 0

Firoze Lafeer
Firoze Lafeer

Reputation: 17143

It looks like you forgot to include the Security framework in your project.

Upvotes: 5

Related Questions