1.
使用Cocoapods的,在profile文件結(jié)尾加上
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
在項目文件夾打開終端 pod install 一次
2.
在項目的文件列表找到 Pods — Targets Support Files — Pods-你的項目名 — Pods-你的項目名-frameworks.sh(有些是 Pods-你的項目名-resources.sh)

截屏2023-07-12 16.20.23.png
或

截屏2023-05-31 15.11.31.png
點進(jìn)去Command + F 搜索
source="$(readlink "${source}")
大概都在代碼的44行,將其更改為
source="$(readlink -f "${source}
3.
大功告成,可以愉快的打包了!