gpt4 book ai didi

ios - Flutter 构建 iOS - BoringSSL-GRPC/,未声明 'SSL_get_secure_renegotiation_support'; 'GRPC_SHADOW_SSL_get_secure_renegotiation_support' ?

转载 作者:行者123 更新时间:2023-12-04 01:13:34 37 4
gpt4 key购买 nike

在尝试为 Firebase Auth 运行基本的 Flutter 演示时,遇到了这个错误输出:

error: use of undeclared identifier
'SSL_get_secure_renegotiation_support'; did you mean 'GRPC_SHADOW_SSL_get_secure_renegotiation_support'?
!(SSL_get_secure_renegotiation_support(ssl) &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GRPC_SHADOW_SSL_get_secure_renegotiation_support

我采取的步骤,但仍然是同样的错误:

  1. 运行 flutter clean
  2. 运行flutter build ios
  3. 按照此帖子中的 pod update 步骤进行操作:https://stackoverflow.com/a/59073131/2162226

完整的错误输出:

Running pod install...                                             20.8s
Running Xcode build...
(This is taking an unexpectedly lon
Xcode build done. 346.8s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **


Xcode's output:


/Users/gene/git/flutter_wifi/ios/Pods/BoringSSL-GRPC/src/ssl/t1_lib.cc:3319:9: error: use of undeclared identifier
'SSL_get_secure_renegotiation_support'; did you mean 'GRPC_SHADOW_SSL_get_secure_renegotiation_support'?
!(SSL_get_secure_renegotiation_support(ssl) &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GRPC_SHADOW_SSL_get_secure_renegotiation_support
In file included from /Users/gene/git/flutter_wifi/ios/Pods/BoringSSL-GRPC/src/ssl/t1_lib.cc:109:
/Users/gene/git/flutter_wifi/ios/Pods/BoringSSL-GRPC/src/include/openssl/ssl.h:4662:5: note: expanded from macro
'SSL_get_secure_renegotiation_support'
SSL_get_secure_renegotiation_support
^
/Users/gene/git/flutter_wifi/ios/Pods/BoringSSL-GRPC/src/include/openssl/ssl.h:1590:20: note:
'GRPC_SHADOW_SSL_get_secure_renegotiation_support' declared here
OPENSSL_EXPORT int SSL_get_secure_renegotiation_support(const SSL *ssl);
^
In file included from <built-in>:1:
/Users/gene/git/flutter_wifi/ios/Pods/Target Support Files/BoringSSL-GRPC/BoringSSL-GRPC-prefix.pch:2489:46: note:
expanded from macro 'SSL_get_secure_renegotiation_support'
#define SSL_get_secure_renegotiation_support GRPC_SHADOW_SSL_get_secure_renegotiation_support

最佳答案

运行这组命令,其中 pod命令从 <flutterProject>\ios 运行:

rm -rf ~/Library/Developer/Xcode/DerivedData/
rm -rf ~/Library/Caches/CocoaPods/
pod deintegrate
pod update

感谢帖子:https://stackoverflow.com/a/63997424/2162226

执行此操作后,然后运行 ​​flutter build ios , OP 中描述的错误不会发生。

另一个增量 - 虽然不确定是否相关,但这些更改正在应用于 SSD 驱动器,自 OP 以来从标准硬盘驱动器升级。

请注意屏幕截图中的 pod 更新包括此行 Installing BoringSSL-GRPC (0.0.7) ,我想知道这是否实际上解决了问题。

enter image description here

关于ios - Flutter 构建 iOS - BoringSSL-GRPC/,未声明 'SSL_get_secure_renegotiation_support'; 'GRPC_SHADOW_SSL_get_secure_renegotiation_support' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64055145/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com