すべてのAFNetworkingライブラリファイルを自分のプロジェクト(githubからダウンロードしたもの)に追加しました。私は自分のアプリケーションに他のView Controller /クラスなどを作成していませんでした。私は自分のアプリケーションを構築し、9つのエラー "アーキテクチャの未定義シンボル"を見つけました。どんな助けもありがとう。AFNetworking "アーキテクチャi386の未定義のシンボル"エラー
私はエラーのリストをリストアップしました。
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接続:willSendRequestForAuthenticationChallengeは:] AFURLConnectionOperation.o
にLD:記号(S)i386アーキテクチャ 打ち鳴らすが見つかりません:エラー:リンカーコマンドはで失敗しました終了コード1(呼び出しには-vを使用してください)
はあなたがSystemConfiguration、セキュリティとMobileCoreServiceフレームワークが含まれたMobileCoreServices.framework? – CarlJ
iOSプロジェクトに 'SystemConfiguration.Framework'を追加する必要があると思います – Buntylm
セキュリティフレームワークを追加するだけです – Saify