首页 > 解决方案 > Xcode 错误:执行“flutter run”命令时

问题描述

当我运行命令时

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).

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

标签: iosxcodefirebaseflutter

解决方案


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

flutter clean

推荐阅读