如何在MacOS上使用rpath编译openssl?

如何在MacOS上使用rpath编译openssl?,openssl,Openssl,我有以下建议: 但这对我不起作用 运行应用程序时,我将libssl.xx.dylib和libcrypto.xxx.dylib复制到应用程序的框架中: dyld: Library not loaded: /usr/local/Cellar/openssl@1.1/1.1.1g/lib/libcrypto.1.1.dylib Referenced from: /Users/ali/Test.app/Contents/Frameworks/libssl.1.1.dylib 它将搜索系统libcr

我有以下建议: 但这对我不起作用

运行应用程序时,我将libssl.xx.dylib和libcrypto.xxx.dylib复制到应用程序的框架中:

dyld: Library not loaded: /usr/local/Cellar/openssl@1.1/1.1.1g/lib/libcrypto.1.1.dylib
  Referenced from: /Users/ali/Test.app/Contents/Frameworks/libssl.1.1.dylib
它将搜索系统libcrypto

我该怎么办