【问题标题】:Flutter app has error and isn't launchingFlutter 应用程序出现错误并且无法启动
【发布时间】:2020-09-08 22:21:10
【问题描述】:

我正在尝试在我的 iPhone 上运行我的颤振应用程序。我以前可以这样做,但它突然停止了,我收到了这个错误:

Could not build the precompiled application for the device.

It appears that your application still contains the default signing identifier.
Try replacing 'com.example' with your signing id in Xcode:
  open ios/Runner.xcworkspace

Error launching application on Jessica's iPhone.

这是我尝试做的:

  • 运行flutter clean
  • 重启电脑
  • 从手机中删除应用程序
  • 重命名捆绑包 ID
  • 在 Xcode 中,我将 File > Workspace Settings 更改为“Legacy Build System”
  • 锁定和解锁的钥匙串
  • 在 Xcode 中我做了 Product > Clean Build Folder

这些都没有使它起作用。当我尝试在 Xcode 中运行它时,我收到以下错误:

460 duplicate symbols for architecture arm64

当我尝试在 ios Simulator 上从 Xcode 运行时,我得到:

35 duplicate symbols for architecture x86_64

(之前还有其他错误,但这是最新的。)

如何在手机上运行 Flutter 应用?

【问题讨论】:

    标签: ios xcode flutter


    【解决方案1】:

    有一个 github 问题 26123 需要解决

    TL:DR 目标:Xcode 中的 Runner,

    然后将 Bundle Identifier 中的 com.example 替换为我的签名证书中的电子邮件。

    然后在 Xcode 中构建

    【讨论】:

    • 所以我会把我的电子邮件地址放在那里?喜欢“jessicaAllison@gmail.com”吗?
    • 是的,还有来自引用的评论的更多数据>>>我遵循了@LachlanGorst 的建议,然后将捆绑标识符中的 com.example 替换为我的签名证书中的电子邮件。在我的电子邮件是 myemail@whatever.com 的情况下,Bundle Identifier 应该是 myemail-whatever.com.licenseTest 其中 licenseTest 是我的应用名称github.com/flutter/flutter/issues/26123#issuecomment-594188046
    猜你喜欢
    • 2013-10-27
    • 2013-11-20
    • 1970-01-01
    • 2013-10-23
    • 2023-03-27
    • 2013-11-21
    • 2013-10-17
    • 2014-05-03
    • 1970-01-01
    相关资源
    最近更新 更多