Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode gRPC-Core Error: 'openssl_grpc/ssl.h' file not found

  • Xcode: 11.2.1
  • Mac: 10.15.2 Beta
  • Pod version: 1.8.4

I was trying to Archive my Mac app on Xcode, then below error in my Xcode:

enter image description here enter image description here

I can compile my app without a problem, just can't archive, I am thinking the issue might be I need to update my pod, when I run command in my terminal

pod outdated

it shows below info:

enter image description here

so this is just my guessing.

Here is an update:

After tried Paul's suggestions, I got a different error: enter image description here

like image 748
Sky Avatar asked Jun 07 '26 02:06

Sky


1 Answers

I encountered the same issue on my Flutter project on an M1 Mac, and I resolved the problem as follows.

1- Replace the gRPC dependencies with BoringSSL within the 'Runner' block in the Podfile. You should add this step right below the 'use_frameworks!' and 'use_modular_headers!' lines. You can make the edits as shown below:

pod 'gRPC-Core', :modular_headers => true

pod 'gRPC-C++', :modular_headers => true

AND POD UPDATE

2- pod update

The sample Podfile is here.

like image 166
Ahmet Ensar Beşir Avatar answered Jun 10 '26 08:06

Ahmet Ensar Beşir



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!