signalapp / libsignal

Home to the Signal Protocol as well as other cryptographic primitives which make Signal possible.
GNU Affero General Public License v3.0
3.06k stars 362 forks source link

Can`t create swift local build #502

Closed Invariant0x closed 1 year ago

Invariant0x commented 1 year ago

I do everything according to the instructions my processor m2

swift/build_ffi.sh --generate-ffi

Screenshot 2022-12-16 at 12 03 45 AM
jrose-signal commented 1 year ago

I'm guessing you're using SwiftPM to bring in LibSignalClient to your project; this isn't officially supported. You can probably make it work by manually linking to libsignal.a within the target/ folder, as the SwiftPM test target does using unsafeFlags, but our real recommendation is to use it as a CocoaPod instead.

Invariant0x commented 1 year ago

I have this file in my debug folder - libsignal_ffi.a do you mean that I need to link it? Please be more specific, I really need your help.

jrose-signal commented 1 year ago

If the brief instructions I gave are unclear, you should stick to the supported approach of using CocoaPods.