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

早过忘川 提交于 2019-12-25 17:14:38

问题


  • 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:

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:

so this is just my guessing.

Here is an update:

After tried Paul's suggestions, I got a different error:


回答1:


From https://github.com/grpc/grpc/issues/20500#issuecomment-543241775:

  • Archive the project in Xcode. It fails with error "openssl_grpc/xxx.h file not found".
  • In the issue navigator, find the particular error, right click, click "Reveal in Log"
  • In the build log that's showing the error, there's a parentheses with words loaded from '/Users/xxx/Library/Developer/Xcode/DerivedData/....'.
  • Copy the full path and append it with /openssl_grpc.framework for use in the next step; should look something like /Users/xxx/Library/Developer/Xcode/DerivedData/......../BoringSSL-GRPC/openssl_grpc.framework
  • Archive the project again. When Xcode shows it's building "BoringSSL-GRPC", go to terminal, cd into the directory in the above step, then run command ln -s Versions/Current/Headers Headers. This needs to be done before Xcode finishes building "BoringSSL-GRPC".
  • Expect the file-not-found error not showing up this time.


来源:https://stackoverflow.com/questions/59128847/xcode-grpc-core-error-openssl-grpc-ssl-h-file-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!