xingchi's weblog / 不用 Mac 来打包 Flutter 的 iOS APP

没有苹果电脑来开发,但有一个能开机的苹果手机,所以找到了 Appollo CLI 来打包 Flutter 的 iOS 版应用。

1. 安装:

pipx install appollo

2. 注册账号:

appollo signup

3. 设置苹果开发者账号:

appollo apple add

参考文档:https://appollo.readthedocs.io/en/master/tutorial/6_configure_app_store_connect.html

4. 设置 App ID:

我是直接关联的已有的一个 ID, 所以使用的是:

appollo app import

如果是新建一个 ID, 需要命令:

appollo app mk

参考文档:https://appollo.readthedocs.io/en/master/tutorial/7_how_to_make_an_app_id_using_appollo.html

5. 然后就可以构建 ipa 文件了,通过苹果手机扫码或者访问链接来直接下载安装。

appollo build start --build-type ad-hoc
appollo build ipa

不熟悉 iOS 应用的开发,这么多配置还是挺绕的,不过应该是没有 Mac 的情况下比较方便的方式了。