@H_404_2@
做了一个oc项目,里面有用到swift第三方,真机运行的时候是正常的,用企业级证书打包成ipa之后安装完成之后闪退,通过导出手机log日志发现错误提示:
@H_404_2@
Dyld Error Message:
@H_404_2@
Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /private/var/mobile/Containers/Bundle/Application/02BA91C4-0E1C-4C3A-9A5E-30CA1D9B6639/funnyC.app/funnyC
Reason: no suitable image found.
第一:
@H_404_2@
@H_404_2@
Setting Embedded Content Contains Swift Code to YES
@H_404_2@
@H_404_2@
第二步:@H_404_2@
Go to project build settings and add @executable_path/Frameworks
to Runpath Search Paths
option@H_404_2@
第三步:@H_404_2@