问题
- 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