我尝试在我的项目中导入解析框架.我确定它是喜欢我的项目,我找不到任何关于它是否“电弧敏感”.我的项目是基于弧的.
这是我得到的错误:
Undefined symbols for architecture i386: "_SCNetworkReachabilityCreateWithName",referenced from: -[PFCommandCache init] in Parse(PFCommandCache.o) +[PFInternalUtils(Reachability) isParseReachable] in Parse(PFInternalUtils.o) "_SCNetworkReachabilityGetFlags",referenced from: ___22-[PFCommandCache init]_block_invoke in Parse(PFCommandCache.o) +[PFInternalUtils(Reachability) isParseReachable] in Parse(PFInternalUtils.o) "_SCNetworkReachabilityScheduleWithRunLoop",referenced from: -[PFCommandCache init] in Parse(PFCommandCache.o) "_SCNetworkReachabilitySetCallback",referenced from: -[PFCommandCache init] in Parse(PFCommandCache.o) "_SCNetworkReachabilityUnscheduleFromRunLoop",referenced from: -[PFCommandCache dealloc] in Parse(PFCommandCache.o) "_SecItemAdd",referenced from: +[PFInternalUtils saveToKeychain:data:] in Parse(PFInternalUtils.o) "_SecItemCopyMatching",referenced from: +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o) "_SecItemDelete",referenced from: +[PFInternalUtils saveToKeychain:data:] in Parse(PFInternalUtils.o) +[PFInternalUtils deleteFromKeychain:] in Parse(PFInternalUtils.o) "_UTTypeCopyPreferredTagWithClass",referenced from: -[PFFile getMimeType] in Parse(PFFile.o) "_UTTypeCreatePreferredIdentifierForTag",referenced from: -[PFFile getMimeType] in Parse(PFFile.o) "_kCFStreamPropertyFTPAttemptPersistentConnection",referenced from: -[PFHTTPCommand scheduleInCurrentThread] in Parse(PFHTTPCommand.o) "_kCFStreamPropertyHTTPAttemptPersistentConnection",referenced from: -[PFHTTPCommand scheduleInCurrentThread] in Parse(PFHTTPCommand.o) "_kSecAttrAccessible",referenced from: +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o) "_kSecAttrAccessibleAfterFirstUnlock",referenced from: +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o) "_kSecAttrAccount",referenced from: +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o) "_kSecAttrService",referenced from: +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o) "_kSecClass",referenced from: +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o) "_kSecClassGenericPassword",referenced from: +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o) "_kSecMatchLimit",referenced from: +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o) "_kSecMatchLimitOne",referenced from: +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o) "_kSecReturnData",referenced from: +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o) "_kSecValueData",referenced from: +[PFInternalUtils saveToKeychain:data:] in Parse(PFInternalUtils.o) "_kUTTagClassFilenameExtension",referenced from: -[PFFile getMimeType] in Parse(PFFile.o) "_kUTTagClassMIMEType",referenced from: -[PFFile getMimeType] in Parse(PFFile.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法
确保您链接到项目中的SystemConfiguration和安全框架.详见
this question.正如Hector在评论中指出的那样,所有需要解析的框架都可以在
iOS Quick Start Guide中找到.
> AudioToolbox.framework> CFNetwork.framework> CoreGraphics.framework> CoreLocation.framework> libz.1.1.3.dylib> MobileCoreServices.framework> QuartzCore.framework>安全框架> StoreKit.framework> SystemConfiguration.framework
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。