oc 和swift混编的时候打包ipa安装不了

来源:互联网 发布:分类信息采集软件 编辑:程序博客网 时间:2024/06/06 01:46


做了一个oc项目,里面有用到swift第三方,真机运行的时候是正常的,用企业级证书打包成ipa之后安装完成之后闪退,通过导出手机log日志发现错误提示:

Dyld Error Message:
  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.

解决方法:

第一:


Setting Embedded Content Contains Swift Code to YES

第二步:

Go to project build settings and add @executable_path/Frameworks toRunpath Search Paths option

第三步:

如果上边两步还是不行的话,就把证书和描述文件都重新创建一遍

1 0
原创粉丝点击