ios模拟器构建成功,但实际设备构建失败

时间:2020-01-16 17:14:04

标签: ios xcode flutter compiler-errors runtime-error

当前,有关ios抖动的建筑问题。那么该应用将以summary.duration = testingStartTime?.let { testingEndTime?.run { it.time - this.time } } ?: summary.duration 的{​​{1}}运行,它可以运行,但是如果连接了flutter run,则同样会失败。

下面是错误代码。

ios simulator

已添加体系结构,但仍然存在此问题。

enter image description here

此外,我确实尝试安装real device或对其进行更新,但仍然没有任何好处。

编辑:附有Flutter Doctor图片。

enter image description here

1 个答案:

答案 0 :(得分:0)

该错误一定是由于签名功能所致。尝试从xcode运行项目。

执行以下步骤:

步骤1:打开项目的ios文件夹以找到Runner.xcworkspace。它应该看起来像这样:

enter image description here

第2步:打开xcode时,单击窗口左上角的Runner。

enter image description here

第3步:转到“签名和功能”,然后在“团队”下拉菜单下选择一个字段。如果不存在,请创建一个帐户。

enter image description here

步骤4:在“捆绑包标识符”中,应显示您应用的捆绑包名称。最后添加.app。例如,如果将其“ com.example.yourapp”设为“ com.example.yourapp.app”,然后按Enter。

按左上角的播放按钮可在所选设备上运行该应用。


如果它不起作用,

在xcode中更改颤动目标运行器-仅构建活动架构:是

enter image description here