美文网首页
SDK新建bundle文件注意的问题

SDK新建bundle文件注意的问题

作者: 灰溜溜的小王子 | 来源:发表于2021-02-24 10:21 被阅读0次

1.删除info.plist里的exextable file选项(直接删除info.plist也没有影响)
2.Building Settiong->Versioning System-> none Apple Generic选 项是指使用苹果的版本系统工具来自动增加每次build的版本号,这会在打包的bundle中引入可执行文件

image.png

2.删除Compile Source Phase and the Link Binary with Libraries Phase这两个选项,也可以阻止bundle中引入可执行文件(第一条试过第二条没有试过)

参考文章

3.COMBINE_HIDPI_IMAGES--->NO,否则图片格式变成了.tiff

image.png

(参考文章)[https://blog.csdn.net/u014274590/article/details/86612165]

主工程内嵌framework联调并添加bundle Xcode12.2 没有Target Dependencies添加到Dependencies即可

资源打包成bundle文件及遇到的坑

报错处理

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>

image.png

Bundle脚本:Demo
build->执行脚本->手动导入到文件夹,如下图:

相关文章

网友评论

      本文标题:SDK新建bundle文件注意的问题

      本文链接:https://www.haomeiwen.com/subject/wxdjfltx.html