APPLE MACH-O LINKED ERROR After adding AFNetworking

前端 未结 4 562
暗喜
暗喜 2021-02-02 10:17

Just adding AFNetworking into my project, and after B&R here i got this error like:

Undefined symbols for architecture i386:
\"_SecCertificateCopyData\", ref         


        
相关标签:
4条回答
  • 2021-02-02 10:56

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

    0 讨论(0)
  • 2021-02-02 10:59

    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.

    0 讨论(0)
  • 2021-02-02 11:12

    For mine, I have to add

    • Security.framework
    • SystemConfiguration.framework
    • MobileCoreServices.framework
    0 讨论(0)
  • 2021-02-02 11:13

    OS X, I had to add:

    • Security.framework
    • SystemConfiguration.framework
    0 讨论(0)
提交回复
热议问题