简体   繁体   中英

Problems linking against AFNetworking iOSOpenDev

I'm trying to link a jailbreak tweak against AFNetworking written with iOSOpenDev but I am having compile issues. I'm getting a Match-O Linker error stating

Undefined symbols for architecture armv7:"_SecCertificateCopyData", referenced from:-[AFSecurityPolicy evaluateServerTrust:forDomain:] in AFSecurityPolicy.o

along with about 40 other messages similar. In AFNetworking's code, it's referenced as

[trustChain addObject:(__bridge_transfer NSData *)SecCertificateCopyData(certificate)];

I'm compiling using armv7 and against the iOS 8.1 SDK. The files for AFNetworking also have flags to allow ARC. Any ideas on how to fix this?

你必须链接到Security.framework

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM