Description
Hi Signal team,
Thank you for providing the Swift wrapper for LibSignalClient. I’m currently trying to integrate it into an iOS project using CocoaPods.
In my setup, I prefer to keep most dependencies as static libraries (.a), and avoid using use_frameworks! in the Podfile to reduce binary size and build complexity. However, I’ve found that LibSignalClient does not seem to support being consumed as a static library when used via CocoaPods. Specifically:
• If I do not enable use_frameworks!, the build fails with the error:
ld: warning: Could not find or use auto-linked library 'signal_ffi': library 'signal_ffi' not found
• If I enable use_frameworks!, it builds and links correctly, but this causes all other pods to be built as dynamic frameworks, which is not ideal in my project.
I’ve also attempted to wrap the prebuilt libsignal_ffi.a as a development pod (using vendored_libraries, module.modulemap, etc.), but linking still fails unless use_frameworks! is enabled.
My question is:
Why does the current CocoaPods setup for LibSignalClient require use_frameworks! and dynamic linking?
Would it be possible to support static library usage (.a) as well, especially for users who integrate LibSignalClient via path-based local pods and want to avoid dynamic frameworks?
Any guidance or explanation would be greatly appreciated.
Thanks again for the great work on Signal!
Best regards