ios – AFNetworking“i386架构的未定义符号”错误

ios – AFNetworking“i386架构的未定义符号”错误,第1张

概述我已将所有AFNetworking库文件添加到我的项目(我从 github下载).我的应用程序中没有创建任何其他视图控制器/类等.我刚刚构建了我的应用程序,发现了9个错误“Undefined symbols for architecture”.任何帮助将不胜感激. 我列出了错误列表. Undefined symbols for architecture i386:"_SecCertificat 我已将所有AFNetworking库文件添加到我的项目(我从 github下载).我的应用程序中没有创建任何其他视图控制器/类等.我刚刚构建了我的应用程序,发现了9个错误“Undefined symbols for architecture”.任何帮助将不胜感激.

我列出了错误列表.

Undefined symbols for architecture i386:"_SecCertificatecopyData",referenced from:-[AFURLConnectionoperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionoperation.o"_SecCertificateCreateWithData",referenced from:___44+[AFURLConnectionoperation pinnedPublicKeys]_block_invoke in AFURLConnectionoperation.o"_SecPolicyCreateBasicX509",referenced from:___44+[AFURLConnectionoperation pinnedPublicKeys]_block_invoke in AFURLConnectionoperation.o-[AFURLConnectionoperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionoperation.o  "_SecTrustcopyPublicKey",referenced from:___44+[AFURLConnectionoperation pinnedPublicKeys]_block_invoke in AFURLConnectionoperation.o-[AFURLConnectionoperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionoperation.o  "_SecTrustCreateWithCertificates",referenced from:___44+[AFURLConnectionoperation pinnedPublicKeys]_block_invoke in AFURLConnectionoperation.o-[AFURLConnectionoperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionoperation.o "_SecTrustEvaluate",referenced from:___44+[AFURLConnectionoperation pinnedPublicKeys]_block_invoke in AFURLConnectionoperation.o-[AFURLConnectionoperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionoperation.o  "_SecTrustGetCertificateAtIndex",referenced from:-[AFURLConnectionoperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionoperation.o

“_SecTrustGetCertificateCount”,引自: – AFURLConnectionoperation.o中的[AFURLConnectionoperation连接:willSendRequestForAuthenticationChallenge:]

ld:没有找到符合i386架构符号
clang:错误:链接器命令失败,退出代码1(使用-v查看调用)

解决方法 我想你需要在iOS项目中添加Security.framework. 总结

以上是内存溢出为你收集整理的ios – AFNetworking“i386架构的未定义符号”错误全部内容,希望文章能够帮你解决ios – AFNetworking“i386架构的未定义符号”错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1110808.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存