无法为模拟器构建应用程序。在 iPhone 11 上启动应用程序时出错

时间:2020-12-26 15:58:06

标签: ios xcode firebase flutter dart

将 Firebase 产品包添加到我的 Flutter 项目后,我的应用的 iOS 版本无法运行。我在互联网上搜索并尝试了许多解决方案,但问题仍然存在。

这是我收到的错误消息:

Launching lib/main.dart on iPhone 11 in debug mode... Running Xcode build... Xcode build done.                                          
38.9s Failed to build iOS app Error output from Xcode build: ↳
    ** BUILD FAILED **


Xcode's output: ↳
    In file included from /Users/currentUser/Projects/Flutter/myapp/ios/Pods/gRPC-C++/src/cpp/common/tls_credentials_options_util.cc:19:
    In file included from /Users/currentUser/Projects/Flutter/myapp/ios/Pods/gRPC-C++/src/cpp/common/tls_credentials_options_util.h:25:
    In file included from /Users/currentUser/Projects/Flutter/myapp/ios/Pods/gRPC-C++/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h:28:
    In file included from /Users/currentUser/Projects/Flutter/myapp/ios/Pods/gRPC-C++/src/core/lib/security/security_connector/ssl_utils.h:33:
    In file included from /Users/currentUser/Projects/Flutter/myapp/ios/Pods/gRPC-C++/src/core/lib/security/security_connector/security_connector.h:33:
    /Users/currentUser/Projects/Flutter/myapp/ios/Pods/gRPC-C++/src/core/tsi/ssl_transport_security.h:28:10: fatal error: 'openssl/x509.h' file not found
    #include <openssl/x509.h>
             ^~~~~~~~~~~~~~~~
    1 error generated.
    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 11.

0 个答案:

没有答案
相关问题