To run the example project, clone the repo, and run pod install
from the Example directory first.
TxAdSupportKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TxAdSupportKit'
bogonchar, [email protected]
#!/bin/bash set -e
BRANCHES=("main" "4.15.6") # 需要清理和强推的分支 LFS_PATTERNS=(".xcframework" ".framework") # 用 LFS 管理的文件类型
echo "🚀 Step 1: 安装 git-lfs 并初始化" brew install git-lfs || true git lfs install
echo "🚀 Step 2: 设置 Git LFS 跟踪" for pattern in "${LFS_PATTERNS[@]}"; do git lfs track "$pattern" done
git add .gitattributes git commit -m "chore: enable git-lfs tracking" || true
echo "🚀 Step 3: 使用 git-filter-repo 清理历史中的大文件 (>100M)" brew install git-filter-repo || true git filter-repo --strip-blobs-bigger-than 100M
echo "🚀 Step 4: 重新添加大文件到 Git LFS" for pattern in "${LFS_PATTERNS[@]}"; do git add $pattern || true done git commit -m "chore: re-add large files with Git LFS" || true
echo "🚀 Step 5: 强制推送到远程分支" for branch in "${BRANCHES[@]}"; do echo " 👉 推送 $branch ..." git push origin "$branch" --force done
echo "✅ 完成!仓库已清理并迁移到 Git LFS。"
echo "
git clone --no-checkout new-repo cd new-repo
git lfs install
git lfs track "*.xcframework" git lfs track "BUAdSDK"
git add . git commit -m "Initial commit with LFS"
git push origin main
TxAdSupportKit is available under the MIT license. See the LICENSE file for more info.
pod lib create TxAdSupportKit
pod lib lint TxAdSupportKit.podspec --allow-warnings
git add . git commit -m "release 4.15.9"
git push origin main
git tag 4.15.9 git push origin --tags
pod trunk push TxAdSupportKit.podspec --allow-warnings
pod repo update --verbose