我正在从事多个依赖于SPP和Cocoapods的项目.只要有可能,我都会使用SPP,但对于某些人来说,我被迫坚持使用Pods.目前我正在考虑自动生成Settings.Bundle
的确认部分.周围有一些工具,一些较旧,一些较新,但我还没有找到一个可以结合ASM和Cocoapods依赖性的工具.
Is there a technical limitation i am unaware of?
Which tool are capable of doing what i look for?
Tools i have found but are not sufficient:
https://github.com/FelixHerrmann/swift-package-list (SPM only)
https://cocoapods.org/pods/Acknowlist (no settings bundle option)
https://github.com/CocoaPods/cocoapods-acknowledgements (Pod only)
edit
感谢@cristallo的输入,这是我现在使用的构建脚本.它是LicensePlist的Readme中描述的稍微调整的版本,用于修复Apple Silicon问题,并在未安装该工具时发出警告(如果有多人参与该项目,这非常实用)
# Adds support for Apple Silicon brew directory
if [[ "$(uname -m)" == arm64 ]]; then
export PATH="/opt/homebrew/bin:$PATH"
fi
if command -v license-plist &> /dev/null; then
license-plist --output-path $PRODUCT_NAME/Settings.bundle
else
echo "warning: license-plist not installed"
fi