-2

Could anyone tell me what's going on? Bunch of errors occurred and I don't know why:

/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)
Doug Smith
  • 29,668
  • 57
  • 204
  • 388

1 Answers1

2

You're missing the required frameworks. Import SystemConfiguration and MobileCoreservices/CoreServices for iOS or OS X respectively.

After that you may want to see my answer here to fix the compiler warnings.

Community
  • 1
  • 1
Keith Smiley
  • 61,481
  • 12
  • 97
  • 110