如何选择在Flutter中创建的iOS应用程序的开发团队

时间:2017-03-06 02:35:52

标签: flutter

我正在尝试使用Google的Flutter将iOS应用部署到设备,但我在命令行上收到此错误:

Building an iOS app requires a selected Development Team with a Provisioning Profile
Please ensure that a Development Team is selected by:
  1- Opening the Flutter project's Xcode target with
       open ios/Runner.xcworkspace
  2- Select the 'Runner' project in the navigator then the 'Runner' target
     in the project settings
  3- In the 'General' tab, make sure a 'Development Team' is selected
For more information, please visit:
  https://flutter.io/setup/#deploy-to-ios-devices
Or run on an iOS simulator

我在哪里以及如何做到这一点?项目中没有“ios / Runner.xcworkspace”。我知道已安装的证书和配置文件在我的Mac上运行,因为我使用Appcelerator在我的iOS设备上创建并安装了一个应用程序,它找到了我需要的所有内容,并在设备上完美运行。

4 个答案:

答案 0 :(得分:2)

选择Runner,然后导航至Signing & Capabilities,在“签名”下,选中“ Automatically manage signing”,然后从列表中选择一个Team,您就完成了。

enter image description here

答案 1 :(得分:1)

open ios/Runner.xcodeproj并遵循相同的说明应该有效吗? Runner.xcodeworkspace是模板的一个相对较新的补充,旨在使Flutter项目更好地与CocoaPods集成。

如果这不起作用,请告诉我们。

答案 2 :(得分:0)

您必须在“签名”中使用appleID登录。之后,您可以选择“个人团队”。

答案 3 :(得分:0)

在使用物理 iOS 设备的情况下,事情会稍微复杂一些。假设设备通过USB线连接并解锁(记住连接线后的附加键提示),我们首先需要在Xcode中打开iOS模块:

enter image description here

在 Xcode 中,在左侧导航面板中选择 Runner 项目。在 Runner 目标设置页面中,确保在 Signing & Capabilities > All > Team 下选择了您的开发团队。当您选择一个团队时,Xcode 会创建并下载开发证书,使用您的帐户注册您的设备,并创建和下载配置文件(如果需要)。

自动签名 自动签名是一个目标设置,它允许 Xcode 为您管理签名资产。签名设置位于项目编辑器中签名标题下的常规窗格中。要启用自动签名,请选择“自动管理签名”。

enter image description here

如果您启用自动签名,Xcode 会在需要时为您执行以下操作:

  • 创建您的签名证书

  • 注册连接的设备

  • 创建和编辑应用 ID

  • 管理配置文件

  • 编辑权利和信息属性列表文件

如果您选择手动签名,则需要在 developer.apple.com/account 上登录您的开发者帐户以自行执行其中的一些步骤。

相关问题