arm64的Apple Mach-O链接器错误

时间:2014-12-01 02:54:24

标签: objective-c xcode cordova

我知道这方面有一些主题,但似乎都没有做到这一点;

我正在对设备进行测试,我得到5个错误,所有Apple Mach-O链接器错误。代码看起来像这样;

有什么想法?我试图使用Active Architecture,但似乎没有任何效果。

谢谢!

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
      objc-class-ref in libCordova.a(CDVURLProtocol.o)
  "_kUTTagClassMIMEType", referenced from:
      ___30-[CDVURLProtocol startLoading]_block_invoke in libCordova.a(CDVURLProtocol.o)
  "_OBJC_CLASS_$_CLLocation", referenced from:
      l_OBJC_$_CATEGORY_CLLocation_$_JSONMethods in libCordova.a(CDVShared.o)
  "_UTTypeCopyPreferredTagWithClass", referenced from:
      ___30-[CDVURLProtocol startLoading]_block_invoke in libCordova.a(CDVURLProtocol.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:2)

通过查看您的错误,我认为您需要导入一些框架,只需尝试导入以下框架:

  1. CoreLocation
  2. ALAssetsLibrary
  3. MobileCoreServices.framework