【问题标题】:Flutter iOS - Build a release version without a real device?Flutter iOS - 在没有真实设备的情况下构建发布版本?
【发布时间】:2020-07-23 18:43:26
【问题描述】:

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

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

但是,我已经到了想将发布 .ipa 分发给我们的内部团队的地步。这可以实现吗?

当我运行flutter build ios 时,我看到以下内容:

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

【问题讨论】:

  • 您需要在为真实设备构建配置文件之前设置配置文件。仅当您有apple developer account 时才能执行此操作。详细信息可以在这里找到。 flutter.dev/docs/get-started/install/…
  • 看来我需要为 Ad Hoc 分发注册一个,这需要我输入设备 UUID。听起来对吗?
  • 您无需手动执行任何操作,但如果您只是想分发它,您也可以将应用程序进行试飞。 developer.apple.com/testflight
  • 我不明白我如何不必手动执行任何操作。
  • 你有注册开发者账号吗?

标签: ios flutter release


【解决方案1】:

我google了很多,我找到了

Provisioning Profile With No Physical Devices

已解决:

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

现在我不需要物理设备来存档,不像链接的 重复状态。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-12-05
    • 2013-04-28
    • 2011-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多