Flutter构建iOS-BoringSSL-GRPC/,未声明"SSL_get_secure_renegotiation_support"; 'GRPC_SHADOW_SSL_get_secure_renegotiation_support'? [英] Flutter build iOS - BoringSSL-GRPC/, undeclared 'SSL_get_secure_renegotiation_support'; 'GRPC_SHADOW_SSL_get_secure_renegotiation_support'?

查看:253
本文介绍了Flutter构建iOS-BoringSSL-GRPC/,未声明"SSL_get_secure_renegotiation_support"; 'GRPC_SHADOW_SSL_get_secure_renegotiation_support'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In trying to run a basic Flutter demo for Firebase Auth, running into this error output:

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

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

Steps I take, but still same error:

  1. 运行flutter clean
  2. 运行flutter build ios
  3. 按照此帖子中pod update的步骤操作: https://stackoverflow.com/a/59073131/2162226
  1. Run flutter clean
  2. Run flutter build ios
  3. Follow steps for pod update from this post: 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运行:

Run this set of commands, where the pod commands are run from <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中描述的错误.

After doing this, then running flutter build ios, the error described in OP does not occur.

另一个差异-尽管不确定是否相关,但是这些更改已应用到SSD驱动器,自OP以来已从标准硬盘驱动器升级.

The other delta - though not sure if it's relevant, is that these changes are being applied to an SSD drive, upgraded from standard hard drive since OP.

在屏幕快照中的通知中,广告连播更新中包括以下行Installing BoringSSL-GRPC (0.0.7),我想知道这是否真的可以解决问题.

Notice in the screenshot, the pod updates includes this line Installing BoringSSL-GRPC (0.0.7) , which I wonder if that's what in fact resolves the issue.

这篇关于Flutter构建iOS-BoringSSL-GRPC/,未声明"SSL_get_secure_renegotiation_support"; 'GRPC_SHADOW_SSL_get_secure_renegotiation_support'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆