App 发布
App 发布
应用AppGuard SDK的IPA审核提交及发布到AppStore之前,需要在AppGuard Manager上应用AppGuard Sign。 为不影响伪造IPA、变造IPA探测功能的正常使用,请务必应用AppGuard Sign。
如果IPA没有使用 AppGuard Sign, AppGuard 安全策略检测可能会导致App异常终止.
AppGuard Sign
选择AppGuard Manager的 [Sign Register] 后,点击 [Sign Register Application] 按钮。

点击您要安装AppGuard Manager的IPA文件,并拖放(Drag & Drop)到 [IOS Sign Register] 窗中。

在AppGuard Manager [IOS Sign Register] 中上传完成IPA 文件后,点击下面的 [Sign Register] 按钮。

确认 AppGuard Manager 签名完成后,点击关闭按钮。

AppGuard Manager安装完成后,可以确认如下内容, 并点击Down 按钮下载已注册 IPA。

###IPA 代码签名及发布
将 AppGuard Sign 应用于 AppGuard Manager 的 IPA 要求在客户公司在发布时使用证书进行代码签名。
AppGuard提供了iparesign.sh脚本,以便使用客户公司的证书进行代码签名。
创建一个用于执行代码签名的文件夹,并复制已应用 AppGuard Sign 的 IPA 文件和 iparesign.sh 文件。

启动 Terminal,并移动到执行代码签名的文件夹。 如下输入命令语进行。
$ cd [iparesign.sh 位置路径]
$ ./iparesign.sh --ipa [/path/to/your_app_appguarded.ipa]
代码签名进行时,各阶段进行日志可确认。. 确认是否如下日志所示正常执行。
1. Check if an ipa file exists
[success] "QATestGame_appguarded.ipa"
2. unzip ipa package
[success] "QATestGame_appguarded.ipa"
. . .
10. codesign the app
/Users/inca/Downloads/iparesign/resigncompleted/Payload/xCode_1402_TestApp.app: replacing existing signature
[success] codesign the app
11. zip the package
[success] "/Users/inca/Downloads/iparesign/resigncompleted/QATestGame_appguarded_resigned.ipa"
(this ipa file has to upload at appstoreconnect.apple.com)
============= resign completed =============
inca@c2211-001Macmini iparesign %
当iparesign.sh 正常执行后,就会创建带有代码签名的resigncompleted/your_app_appguarded_resigned.ipa 文件。
通过使用 [Transporter],文件可用于提交 AppStore 进行审核。.
iparesign 详细说明
iparesign.sh 是通过客户公司的认证书,为方便IPA的代码签名而提供的 Shell Script。
iparesign.sh --ipa path [--entitlements path] [--profile path] [--identity "Your Signing Identity"] [--out path]
| 选项 | 说明 |
|---|---|
--ipa | 为指定代码签名的 IPA的选项。 |
--entitlements | 为指定entitlements 文件的选项。 |
--profile | 为指定用于代码签名的 profile的选项。 |
--identity | 为指定用于代码签名的 Signing Identity的选项。 |
--out | 为指定应用代码签名的 IPA创建位置的选项。 |
为使用**iparesign.sh** 进行代码签名,PC上应安装发布用认证书。