【发布时间】:2018-10-24 23:39:58
【问题描述】:
我正在 Mac 上开发个人颤振应用程序并尝试部署到通过 USB 连接的 Ipad。 我在我的 Apple 开发者帐户上创建了一个配置文件,但我不知道如何将它用于 Flutter。
Android builder 的错误是:
Launching lib/aopAppMain.dart on Chris’s iPad in debug mode...
Signing iOS app for device deployment using developer identity: "iPhone Developer: chrisr@instantobjects.com (XXXXXXX)"
Starting Xcode build...
Xcode build done. 1.4s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
Code Signing Error: "Runner" requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.0'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.0'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.0'
Could not build the precompiled application for the device.
Error launching application on Chris’s iPad.
如果我在 XCode 中加载项目,它只有一个 Info 选项卡和一个 Build Settings 选项卡。 如果我启动一个 swift 项目,Provisioning Profile 分配似乎发生在 General 选项卡上,至少我的 Flutter 项目在 XCode 中没有。
【问题讨论】:
-
我目前的理论是它与旧的 Flutter 项目模板和最近的 OSX/Xcode 升级有关。我这么认为的原因是 Flutter Create xxx 可以正常工作并且可以很好地部署到我的 Ipad 上。
-
感谢 hemnath,但似乎无关。