./resign_ipa.sh --setup
这会显示:
cd ~/.qclaw/skills/ipa-resign/scripts
./resign_ipa.sh \
--ipa ~/Downloads/xxx.ipa \
--cert "Apple Distribution: Your Name (TEAMID)" \
--provision ~/Desktop/my.mobileprovision \
--bundle-id com.example.myapp \
--app-name "My App"
```bash
mkdir -p ~/.config/ipa-resign
cat > ~/.config/ipa-resign/config << 'EOF'
CERT_NAME="Apple Distribution: Your Name (TEAMID)"
PROVISION_PATH="$HOME/Desktop/my.mobileprovision"
EOF
```
```bash
./resign_ipa.sh \
--ipa ~/Downloads/xxx.ipa \
--bundle-id com.example.myapp \
--app-name "My App"
```
| 参数 | 必需 | 说明 |
|---|---|---|
| ------ | ------ | ------ |
--ipa | ✅ | 原 IPA 文件路径 |
--cert | ✅* | 签名证书名称 (完整名称, *可从配置文件读取) |
--provision | ✅* | .mobileprovision 描述文件路径 (*可从配置文件读取) |
--bundle-id | ✅ | 新的 Bundle Identifier |
--app-name | ✅ | 新的 App 显示名称 |
--icon | ❌ | 新图标路径 (PNG, 不传保留原图标) |
--output | ❌ | 输出 IPA 路径 (默认 ~/Desktop/ |
--strip-extensions | ❌ | 删除 App Extensions (默认开启) |
--keep-extensions | ❌ | 保留并重签 App Extensions |
--no-clean | ❌ | 调试模式,保留临时工作目录 |
--verbose | ❌ | 显示详细签名信息 |
--setup | ❌ | 显示环境检查向导 |
-h, --help | ❌ | 显示帮助信息 |
运行 security find-identity -v -p codesigning 确认证书名称完整匹配。
确保描述文件的 ProvisionedDevices 或 TeamIdentifier 与证书匹配。
--keep-extensions 保留 Extension部分 App 图标在 Assets.car 中编译,PNG 替换无效。此时需要用其他工具修改 Assets.car。
成功后会生成新的 IPA 文件,可通过以下方式安装:
idevicedeploy 命令行工具共 1 个版本