jakeheis / Shout

SSH made easy in Swift
MIT License
357 stars 103 forks source link

How to build project for Apple Silicon? #62

Open glushchenko opened 2 years ago

glushchenko commented 2 years ago

Works fine if run project on macOS, but if target Any Mac i am get:

Showing Recent Messages
Ignoring file /usr/local/Cellar/libssh2/1.10.0/lib/libssh2.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

Undefined symbol: _libssh2_agent_connect
Undefined symbol: _libssh2_agent_disconnect
Undefined symbol: _libssh2_agent_free
Undefined symbol: _libssh2_agent_get_identity
Undefined symbol: _libssh2_agent_init
Undefined symbol: _libssh2_agent_list_identities
Undefined symbol: _libssh2_agent_userauth
Undefined symbol: _libssh2_channel_close
Undefined symbol: _libssh2_channel_free
...

Any suggestions?