Search code examples
iosobjective-cxcode5

Xcode: Missing arm64 Symbols from MagTek iOS Library


I am having an issue adding the MagTek library and header. After they are added (I followed all the information I could find) I get this error:

    Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_MTSCRA", referenced from:
      objc-class-ref in CONAppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have wasted so much time figuring this out. I am using Xcode 5. Any Help would be appreciated.


Solution

  • The MagTek library must not 64-bit and you are trying to run against the iPhone 64-bit simulator and/or on the iPhone 5s. In your "Build Settings," under "Architectures," try changing to $(ARCHS_STANDARD_32_BIT) or $(ARCHS_STANDARD) to not build the 64-bit version as a workaround.