【问题标题】:Error codes when launching Flutter App on physical ios device在物理 ios 设备上启动 Flutter App 时出现错误代码
【发布时间】:2019-04-17 01:34:31
【问题描述】:

我尝试在我的 ios 设备中启动 Flutter 应用,但不断收到这些错误。

我已经在网上尝试了所有方法。我不知道该怎么办。

Xcode 的输出: ↳ === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===

Code Signing Error: Failed to create provisioning profile. The app ID "io.flutter.plugins.firebaseMlVisionExample" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.
Code Signing Error: No profiles for 'io.flutter.plugins.firebaseMlVisionExample' were found:  Xcode couldn't find any iOS App Development provisioning profiles matching 'io.flutter.plugins.firebaseMlVisionExample'.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.2'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.2'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.2'

无法为设备构建预编译的应用程序。

flutter 应用程序应该安装在我的 iPhone 上。

【问题讨论】:

    标签: xcode flutter


    【解决方案1】:

    此时,您应该在 XCode 中打开 iOS 项目并按照 Apple 的说明准备您的应用程序以进行分发。这将解决您看到的错误。见:https://flutter.dev/docs/deployment/ios

    【讨论】:

    • 我不想在应用商店中分发我的应用。我只是想在我的 iphone 7 上运行一个原型版本。
    • 没错。为了在设备上运行您的应用程序,您需要开发者的签名证书,这意味着您需要注册为 Apple 开发者。之后在 XCode 中打开项目并选中该框以允许 XCode“自动管理签名”。
    【解决方案2】:

    打开your_project_folder/ios/Runner.xcworkspace,Xcode就会启动。然后选择Signing 部分下的Team(个人团队选项应该在选项中)。如果出现一些错误,请尝试将Indentity 部分下的Bundle Identifier 修改为一些唯一的字符串。现在你可以在 ios 设备上调试你的 Flutter 应用了。

    【讨论】:

      【解决方案3】:

      从我个人的经验来看,原因是因为我没有为项目Runner选择我的开发团队。在苹果开发者控制台上,我有我的捆绑包 ID,但我没有指定我将用于这个项目的团队。要解决它,请使用 xcode 打开应用程序的运行器,转到签名/功能选择您的团队。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-09-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-11-10
        • 2019-05-24
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多