1.删除info.plist里的exextable file选项(直接删除info.plist也没有影响)
2.Building Settiong->Versioning System-> none Apple Generic
选 项是指使用苹果的版本系统工具来自动增加每次build的版本号,这会在打包的bundle中引入可执行文件
2.删除Compile Source Phase
and the Link Binary with Libraries Phase
这两个选项,也可以阻止bundle中引入可执行文件(第一条试过第二条没有试过)
3.COMBINE_HIDPI_IMAGES--->NO
,否则图片格式变成了.tiff
(参考文章)[https://blog.csdn.net/u014274590/article/details/86612165]
主工程内嵌framework联调并添加bundle Xcode12.2 没有Target Dependencies
添加到Dependencies
即可
报错处理
SDK脚本打包bundle资源文件报错 The following build commands failed: CodeSign build/Release-iphonesimulator/XX.bundle
解决方法:删除bundle的target下的plist文件(这个慎用,目前没有发现问题,后期看吧)
TARGETS-->xxbundle-->Build Setting-->Code Signing Identity---删除<Multiple values>
Bundle脚本:Demo
build->执行脚本->手动导入到文件夹
,如下图: