ynghype
ynghype

Reputation: 37

Apple Mach-O Linker Error for arm64

I know there are a few topics on this, but none seem to do the trick;

I'm testing to the device and I get 5 errors, all Apple Mach-O Linker Errors. The code looks likes this;

Any thoughts? I've tried to play around with the Active Architecture but nothing seems to work.

Thank you!

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)

Upvotes: 0

Views: 1138

Answers (1)

V-Xtreme
V-Xtreme

Reputation: 7333

By looking at your errors I think you need to import some frameworks , Just try to import following frameworks :

  1. CoreLocation
  2. ALAssetsLibrary
  3. MobileCoreServices.framework

Upvotes: 2

Related Questions