我正在使用中央互助会作为支付网关。我在运行应用程序时得到了"'openssl/rsa.h' file not found"这个错误。
是否有任何方法通过cocoapods添加openssl或避免此问题。
提前谢谢。
发布于 2019-09-23 06:30:33
如果您在Mac/ios开发中遇到了这个sha.h错误,那是因为苹果放弃了对openssl的支持。(我在mojave版本中遇到了这个错误)
请参阅此链接:https://www.anintegratedworld.com/mac-osx-fatal-error-opensslsha-h-file-not-found/
您可以按照下面提到的步骤来解决这个问题。
- This will install a folder called openssl into your /usr/local/Cellar folder (where all your other brew downloads reside)
2.cd /usr/局域/包括
3.在-s ./opt/openssl/include/openssl中。
1. brew doctor
2. brew update
3. brew upgrade
这将解决问题。
注意:当我试图在我的R环境中安装'RSclient‘包时,我遇到了这个特殊的问题(openssl/rsa.h文件找不到)。
https://stackoverflow.com/questions/51726636
复制相似问题