iOS 导入Framework 报错 Reason: no suitable image found. Did find

合并Framework后,导入报错

自己合并真机模拟器的SDK后,在导入测试项目的时候发现直接闪退了,报错如下:

dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /Users/jocelen/Library/Developer/CoreSimulator/Devices/E5532504-D375-4FCC-81A5-A46EA31BCB48/data/Containers/Bundle/Application/4413D938-4427-4B4D-8032-44A48643A0C7/QuoteSDK-Demo.app/Frameworks/DZKJQuoteModule.framework/DZKJQuoteModule
  Reason: no suitable image found.  Did find:
    /Users/jocelen/Library/Developer/CoreSimulator/Devices/E5532504-D375-4FCC-81A5-A46EA31BCB48/data/Containers/Bundle/Application/4413D938-4427-4B4D-8032-44A48643A0C7/QuoteSDK-Demo.app/Frameworks/DZKJQuoteModule.framework/Frameworks/libswiftCore.dylib: no matching architecture in universal wrapper
(lldb)

解决如下

Targets-->General-->Always Embed Swift Standard Libraries-->YES


78511B1B-ADEC-4AA0-829A-23BCD98EFDCB.png

你可能感兴趣的:(iOS 导入Framework 报错 Reason: no suitable image found. Did find)