合并Framework后,导入报错
自己合并真机模拟器的SDK后,在导入测试项目的时候发现直接闪退了,报错如下:1
2
3
4
5dyld: 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