构建包含AFNetworking的项目时发生大量错误

时间:2013-03-25 13:26:44

标签: ios objective-c xcode ios6 afnetworking

有谁能告诉我发生了什么事?发生了一堆错误,我不知道为什么:

/JSONKit.m:680:12: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/JSONKit.m:931:17: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
  "_SCNetworkReachabilityCreateWithName", referenced from:

  "_SCNetworkReachabilityGetFlags", referenced from:

  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:

  "_SCNetworkReachabilitySetCallback", referenced from:

  "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:

  "_UTTypeCopyPreferredTagWithClass", referenced from:

  "_UTTypeCreatePreferredIdentifierForTag", referenced from:

  "_kUTTagClassFilenameExtension", referenced from:

  "_kUTTagClassMIMEType", referenced from:

clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:2)

您缺少必需的框架。分别为iOS或OS X导入SystemConfiguration和MobileCoreservices / CoreServices。

之后,您可能希望看到我的答案here来修复编译器警告。