How to fix missing required architecture i386 in file?

二次信任 提交于 2019-12-12 01:36:30

问题


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.


回答1:


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




回答2:


It seems that the framework is not built for the simulator. There can be two possibilities for this.

  1. Some of the functions which this framework does might not be possible in the simulator (like payment processing).

  2. The framework is not built universally.

If your case is first one then we can't do much with it.

If the issue is due to case second then please get a universal build for the framework and all things should work correctly then.



来源:https://stackoverflow.com/questions/36978366/how-to-fix-missing-required-architecture-i386-in-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!