1.刪除info.plist里的exextable file選項(xiàng)(直接刪除info.plist也沒有影響)
2.Building Settiong->Versioning System-> none Apple Generic選 項(xiàng)是指使用蘋果的版本系統(tǒng)工具來自動(dòng)增加每次build的版本號(hào),這會(huì)在打包的bundle中引入可執(zhí)行文件

2.刪除Compile Source Phase and the Link Binary with Libraries Phase這兩個(gè)選項(xiàng),也可以阻止bundle中引入可執(zhí)行文件(第一條試過第二條沒有試過)
3.COMBINE_HIDPI_IMAGES--->NO,否則圖片格式變成了.tiff

(參考文章)[https://blog.csdn.net/u014274590/article/details/86612165]
主工程內(nèi)嵌framework聯(lián)調(diào)并添加bundle Xcode12.2 沒有Target Dependencies添加到Dependencies即可
報(bào)錯(cuò)處理
SDK腳本打包bundle資源文件報(bào)錯(cuò) The following build commands failed: CodeSign build/Release-iphonesimulator/XX.bundle
解決方法:刪除bundle的target下的plist文件(這個(gè)慎用,目前沒有發(fā)現(xiàn)問題,后期看吧)
TARGETS-->xxbundle-->Build Setting-->Code Signing Identity---刪除<Multiple values>

Bundle腳本:Demo
build->執(zhí)行腳本->手動(dòng)導(dǎo)入到文件夾,如下圖:
