LibSignal is not officially supported on macOS because it's not one of Signal's app platforms (Signal Mac app uses Electron). You'll have to build the Rust parts yourself instead of using the prebuilt ones.
- Check out https://github.com/signalapp/libsignal repo.
- Have Rust as well as
clang, libclang-dev, cmake, make, protobuf-compiler, git
installed, or set it up usingbin/mac_setup.sh
. - Build the checked out repo using
swift/build_ffi.sh --release
. - nano
*.podspec
- Add
s.osx.deployment_target = '10.15'
afters.swift_version = '5'
in Podspec file. - pod lib lint --platforms=macos
- In your project's Podfile:
platform :macos, '10.15'
target 'MyApp' do
use_frameworks!
# Pods for MyApp
pod 'LibSignalClient', :path => 'path/to/downloaded-libsignal-directory'
ENV['LIBSIGNAL_FFI_PREBUILD_CHECKSUM'] = 'checksum_that_is_attached_to_every_libsignal_release (tar.gz.sha256 file)'
end
- pod install
Now you should have LibSignal working on macOS. Go into Xcode and build the project!