Undefined Symbols for Architecture I386
1234567891011121314151617181920212223242526 | 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.old: symbol(s) not found for architecture i386clang: error: linker command failed with exit code 1 (use -v to see invocation) |
查了下原来他需要Security.framework的支持
重新编译通过