Search code examples
iosios7ios5ios4

How to fix missing required architecture i386 in file?


I have developed a app in which I imported a iMagPay.framework,after compiling i got a error as shown below.

ld: warning: ignoring file ./iMagPay.framework/iMagPay, missing required architecture i386 in file ./iMagPay.framework/iMagPay (3 slices) Undefined symbols for architecture i386:
"_OBJC_CLASS_$_BluetoothHandler", referenced from: objc-class-ref in BLEControllerViewController.o "_OBJC_CLASS_$_EMVApp", referenced from: objc-class-ref in EMVConstants.o "_OBJC_CLASS_$_EMVCapk", referenced from: objc-class-ref in EMVConstants.o "_OBJC_CLASS_$_EMVHandler", referenced from: objc-class-ref in PaymentViewController.o objc-class-ref in TPaymentViewController.o objc-class-ref in ICCardController.o "_OBJC_CLASS_$_EMVParam", referenced from: objc-class-ref in PaymentViewController.o objc-class-ref in ICCardController.o objc-class-ref in BLEControllerViewController.o "_OBJC_CLASS_$_EMVRevoc", referenced from: objc-class-ref in EMVConstants.o "_OBJC_CLASS_$_M1Helper", referenced from: objc-class-ref in M1CardControllerViewController.o "_OBJC_CLASS_$_Settings", referenced from: objc-class-ref in PaymentViewController.o objc-class-ref in TPaymentViewController.o objc-class-ref in M1CardControllerViewController.o objc-class-ref in IndividualAppt.o objc-class-ref in MagneticCardController.o objc-class-ref in SetUpCardReader.o objc-class-ref in SetUpCardReaderTab.o ... (maybe you meant: _OBJC_CLASS_$_SettingsPageViewController, _OBJC_CLASS_$_SettingsPageViewControllerTab ) "_OBJC_CLASS_$_SwipeHandler", referenced from: objc-class-ref in M1CardControllerViewController.o objc-class-ref in IndividualAppt.o objc-class-ref in MagneticCardController.o objc-class-ref in SetUpCardReader.o objc-class-ref in SetUpCardReaderTab.o objc-class-ref in individualApptsTabs.o "_OBJC_CLASS_$_audiotest", referenced from: objc-class-ref in IndividualAppt.o objc-class-ref in individualApptsTabs.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am able to run the app in device, but not working in Simulator,I need to run the app in simulator can any one please help.


Solution

  • If you ask about this product IMagPay Mobile Magstripe Credit Card reader and their SDK you obviously should contact support first

    Also since this framework communicate with external hardware (card reader) creators not need to support simulators