iOS提交ipa包时出现"The binary file XXX libswiftRemoteMirror.dylib is not permitted"

来源:互联网 发布:萌酱岛网络错误 编辑:程序博客网 时间:2024/06/10 07:24

传统的APP打包方式主要是Archive打包和.app文件打包。为了方便,一直都是使用.app文件打包,但是最近一次项目中开始引入Swift混编的时候,提交ipa包的时候出现了问题。

这里写图片描述
提示:ERROR ITMS-90171:Invalid Bundle Structure - The binary file XXX libswiftRemoteMirror.dylib is not permitted. Your app can’t contain standalone executables or libraries, other than the CFBundleExecutable of supported bundles……..

很明显包中不应该包含libswiftRemoteMirror.dylib这个文件。当然,这个文件在项目中是搜不到的。最后,在解压了ipa文件后发现,是藏匿在.app文件中(不在Framwork文件夹中,混在资源文件中)
这里写图片描述

后来,经过多次实验发现,可以通过以下几种方式解决:
1、通过Xcode的Archive方式打包。Archive打的包,就没有包含这个libswiftRemoteMirror.dylib文件。
2、手动删除.app中的libswiftRemoteMirror.dylib文件,然后进行.app打包。
3、在Xcode7中进行.app打包。在Xcode7和Xcode8中分别进行.app打包,发现Xcode7打包后没有libswiftRemoteMirror.dylib文件。

0 0