Flutter iOS-在没有真实设备的情况下构建发行版? [英] Flutter iOS - Build a release version without a real device?

查看:215
本文介绍了Flutter iOS-在没有真实设备的情况下构建发行版?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

As an Android dev, I've been baffled by the idea of building against targets.

我没有iOS设备,并且已针对iOS模拟器进行调试.

I don't have an iOS device and have been debugging against the iOS simulator.

但是,我已经到了要把发行版.ipa散布到我们内部团队的地步.能做到吗?

However, I've gotten to a point where I want to disperse a release .ipa to our internal team. Can this be achieved?

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

When I run flutter build ios, I see the following:

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')

推荐答案

我在Google上做了很多,而我发现了它

I did google more, and i found it

没有物理设备的配置文件

已解决:

以防其他任何人遇到麻烦.我必须创建一个配置 分发的个人资料-App Store.然后在Xcode中关闭 自动管理签名,然后选择配置文件 手动进行签名(调试)和签名(发布).

In case anyone else is having trouble. I had to create a provisioning profile for Distribution - App Store. And then in Xcode turn off Automatically manage signing, and select the provisioning profile manually for Signing(Debug), and Signing (Release).

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

Now I do not need a physical device to archive, unlike what the linked duplicate states.

这篇关于Flutter iOS-在没有真实设备的情况下构建发行版?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆