2013-11-24 19 views
5

Projeme AFNetworking 2.0 ekledim. Ben CocoaPods kullanmadan yaptım - Sadece dosyaları projeye ekledim, dosyaları hedefe kopyaladığınızdan emin oldum.Mimariye ilişkin tanımlanmamış semboller i386, AFNetworking 2.0 derlenmeye çalışılırken

ben aşağıdaki hatayı alıyorum projeyi derlemek için deneyin:

Undefined symbols for architecture i386: 
    "_SecCertificateCopyData", referenced from: 
     _AFCertificateTrustChainForServerTrust in AFSecurityPolicy.o 
    "_SecCertificateCreateWithData", referenced from: 
     _AFPublicKeyForCertificate in AFSecurityPolicy.o 
    "_SecPolicyCreateBasicX509", referenced from: 
     _AFPublicKeyForCertificate in AFSecurityPolicy.o 
     _AFPublicKeyTrustChainForServerTrust in AFSecurityPolicy.o 
    "_SecTrustCopyPublicKey", referenced from: 
     _AFPublicKeyForCertificate in AFSecurityPolicy.o 
     _AFPublicKeyTrustChainForServerTrust in AFSecurityPolicy.o 
    "_SecTrustCreateWithCertificates", referenced from: 
     _AFPublicKeyForCertificate in AFSecurityPolicy.o 
     _AFPublicKeyTrustChainForServerTrust in AFSecurityPolicy.o 
    "_SecTrustEvaluate", referenced from: 
     _AFPublicKeyForCertificate in AFSecurityPolicy.o 
     _AFServerTrustIsValid in AFSecurityPolicy.o 
     _AFPublicKeyTrustChainForServerTrust in AFSecurityPolicy.o 
    "_SecTrustGetCertificateAtIndex", referenced from: 
     _AFCertificateTrustChainForServerTrust in AFSecurityPolicy.o 
     _AFPublicKeyTrustChainForServerTrust in AFSecurityPolicy.o 
    "_SecTrustGetCertificateCount", referenced from: 
     _AFCertificateTrustChainForServerTrust in AFSecurityPolicy.o 
     _AFPublicKeyTrustChainForServerTrust in AFSecurityPolicy.o 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Projemde nesi var?

cevap

16

Eksik iOS çerçeveleriniz projede. Bahse girerim güvenlik çerçevesi, gördüğüm isimlerden biridir.

5

#import <Security/Security.h> PCH dosyanızda + kütüphanenin "Kütüphanelerle Bağlantılı İkili" olduğundan emin olun.

0

Sadece projenize security.framework ekleyin.

İlgili konular