【问题标题】:Xcode error : while executing 'flutter run' commandXcode 错误:执行“flutter run”命令时
【发布时间】:2020-08-26 12:08:51
【问题描述】:

当我运行命令时

flutter run

对于我的应用程序,它给出了以下错误:

Launching lib/main.dart on iPhone SE (2nd generation) in debug mode...

Running Xcode build...                                                  

Xcode build done.                                            7.5s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/Soumya/Desktop/fluttershare/build/ios/Debug-iphonesimulator/gRPC-C++/gRPCCertificates.bundle: replacing existing signature
    /Users/Soumya/Desktop/fluttershare/build/ios/Debug-iphonesimulator/gRPC-C++/gRPCCertificates.bundle: resource fork, Finder
    information, or similar detritus not allowed
    Command CodeSign failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To
    resolve this, select a development team in the Runner editor. (in target 'Runner' from project 'Runner')

Could not build the application for the simulator.
Error launching application on iPhone SE (2nd generation).

这背后的可能原因是什么?如何解决这个问题?

【问题讨论】:

  • 你能做flutter clean然后重新构建吗?
  • @shubham ,就像一个魅力 :) 我仍然想知道这背后的原因是什么。
  • 我不知道是什么导致了这个问题。我有时会在导入一些插件后得到它。我已经在下面发布了答案,您可以将其标记为已接受。
  • 执行flutter clean命令后,我们会看到它将删除我们应用程序中的dart-tools文件夹,android文件夹和iOS文件夹以及调试文件。 @SoumyaKantiNaskar

标签: ios xcode firebase flutter


【解决方案1】:

清理您的构建并重建应该解决问题的应用程序。

flutter clean

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-05-04
    • 1970-01-01
    • 2021-08-29
    • 2018-09-06
    • 2021-07-27
    • 1970-01-01
    • 2019-03-27
    • 2023-04-08
    相关资源
    最近更新 更多