Dodałem wszystkie pliki biblioteki AFNetworking do mojego projektu (który pobrałem z Githuba). W mojej aplikacji nie utworzyłem żadnego innego kontrolera widoku/klasy itp. Właśnie zbudowałem aplikację i znalazłem 9 błędów "Niezdefiniowane symbole dla architektury". Każda pomoc będzie doceniona.AFNetworking "Niezdefiniowane symbole architektury i386" Błąd
Wymieniłem listę błędów.
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" odnosi z: - [związek AFURLConnectionOperation: willSendRequestForAuthenticationChallenge:] w AFURLConnectionOperation.o
ld symbol: (a) nie znaleziono szczęk architektury i386: błąd poleceniu nie powiodła się z łącznika kod zakończenia 1 (użyj opcji -v, aby wyświetlić wywołanie)
pan obejmują SystemConfiguration, bezpieczeństwa i MobileCoreService ram? – CarlJ
Myślę, że musisz dodać 'SystemConfiguration.Framework' w twoim projekcie iOS – Buntylm
Po prostu dodaj Security Framework – Saify