Flutter iOS - 在没有真实设备的情况下构建发布版本?

Sea*_*ean 6 release ios flutter

作为一名 Android 开发者,我对针对目标进行构建的想法感到困惑。

\n\n

我没有 iOS 设备,一直在针对 iOS 模拟器进行调试。

\n\n

然而,我已经到了想要将 .ipa 版本分发给我们的内部团队的地步。这能实现吗?

\n\n

当我跑步时flutter build ios,我看到以下内容:

\n\n
Xcode's output:\n\xe2\x86\xb3\n    note: Using new build system\n    note: Building targets in parallel\n    note: Planning build\n    note: Constructing build description\n    error: Failed to create provisioning profile. There are no devices\n    registered in your account on the developer website. Plug in and select a\n    device to have Xcode register it. (in target 'Runner' from project 'Runner')\n    error: No profiles for 'xxx.xxx.xxx' were found: Xcode couldn't\n    find any iOS App Development provisioning profiles matching\n    'xxx.xxx.xxx'. (in target 'Runner' from project 'Runner')\n
Run Code Online (Sandbox Code Playgroud)\n

KIM*_*KIM 5

我又google了一下,终于找到了

没有物理设备的配置文件

解决了:

以防其他人遇到麻烦。我必须为 Distribution - App Store 创建一个配置文件。然后在 Xcode 中关闭自动管理签名,并手动选择用于签名(调试)和签名(发布)的配置文件。

现在,我不需要物理设备来存档,这与链接的副本状态不同。