I'm using this library in my Xcode project.
In one of the header files of that library there is this import: #import "/opt/homebrew/include/libssh2.h"
So I installed libssh2 with brew install libssh2 on my MacBook Intel machine and it worked.
However now I have a MacBook M1 machine, so when I run brew install libssh2, the installation directory is /usr/local/Cellar/libssh2/1.10.0, so when I build the Xcode project I get this error:
SourcePackages/checkouts/CNMSSH/Sources/CNMSSH/include/socket_helper.h:1:9: '/opt/homebrew/include/libssh2.h' file not found
#import "/opt/homebrew/include/libssh2.h"
^~~~~
Is there a way to "embed" the libssh2 library within the Xcode project? (instead of dealing with homebrew installation directories)
Or at least a way to tell Xcode to add search paths for "/opt/homebrew/include/libssh2.h"?