如何修复文件中缺少的必需架构 i386?

How to fix missing required architecture i386 in file?

我开发了一个应用程序,我在其中导入了一个 iMagPay.framework,编译后出现如下所示的错误。

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)

我可以 运行 设备中的应用程序,但不能在模拟器中工作,我需要 运行 模拟器中的应用程序 任何人都可以帮忙。

看来框架不是为模拟器构建的。这可能有两种可能性。

  1. 该框架执行的某些功能在模拟器中可能无法实现(例如支付处理)。

  2. 框架不通用

如果您的情况是第一个,那么我们无能为力。

如果问题是由于第二种情况引起的,那么请为框架获取一个通用构建,然后所有事情都应该可以正常工作。

如果您询问此产品IMagPay Mobile Magstripe Credit Card reader 和他们的 SDK 你显然应该先联系支持

此外,由于此框架与外部硬件(卡reader)通信,创建者不需要支持模拟器