APPLE MACH-O LINKED ERROR After adding AFNetworking

坚强是说给别人听的谎言 提交于 2019-12-02 20:24:40

You need to add the Security.framework in order for it to build.

For mine, I have to add

  • Security.framework
  • SystemConfiguration.framework
  • MobileCoreServices.framework

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 Cody above for the accepted answer.

OS X, I had to add:

  • Security.framework
  • SystemConfiguration.framework
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!