24

在项目中添加 AFNetworking 框架时出现以下错误:-

Undefined symbols for architecture i386:
  "_UTTypeCopyPreferredTagWithClass", referenced from:
      _AFContentTypeForPathExtension in AFURLRequestSerialization.o
  "_UTTypeCreatePreferredIdentifierForTag", referenced from:
      _AFContentTypeForPathExtension in AFURLRequestSerialization.o
  "_kUTTagClassFilenameExtension", referenced from:
      _AFContentTypeForPathExtension in AFURLRequestSerialization.o
  "_kUTTagClassMIMEType", referenced from:
      _AFContentTypeForPathExtension in AFURLRequestSerialization.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我正在使用带有 sdk iOS 6.0 的 xcode 4.5

4

1 回答 1

95

在您的项目中添加以下框架:

MobileCoreServices.framework
SystemConfiguration.framework
于 2013-10-08T06:34:31.740 回答