Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler error integrating from CocoaPods since version 1.16.0 #594

Closed
arivas87 opened this issue Oct 31, 2024 · 5 comments
Closed

Compiler error integrating from CocoaPods since version 1.16.0 #594

arivas87 opened this issue Oct 31, 2024 · 5 comments

Comments

@arivas87
Copy link

ld: warning: Could not find or use auto-linked library 'signal_ffi': library 'signal_ffi' not found
Undefined symbols for architecture arm64:
  "LibSignalClient.NativeHandleOwner.__allocating_init(borrowing: Swift.OpaquePointer?) -> LibSignalClient.NativeHandleOwner", referenced from:
      full type metadata for LibSignalClient.Aes256Ctr32 in Aes256Ctr.o
      full type metadata for LibSignalClient.Aes256GcmEncryption in Aes256Gcm.o
      full type metadata for LibSignalClient.Aes256GcmDecryption in Aes256Gcm.o
      full type metadata for LibSignalClient.Aes256GcmSiv in Aes256GcmSiv.o
      full type metadata for LibSignalClient.Cds2Client in Cds2.o
      full type metadata for LibSignalClient.ChatListenerBridge.(AckHandleOwner in _7880CDAD24B1514BE930FD806DBED1E8) in ChatListener.o
      full type metadata for LibSignalClient.AuthenticatedChatService in ChatService.o
      ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@jrose-signal
Copy link
Contributor

jrose-signal commented Oct 31, 2024

Hm, those are missing Swift symbols, in addition to the missing Rust library. *attempts psychic debugging* Is it possible you only have a build for the x86_64 simulator, but are now running on an arm64 Mac?

Other than that, I'll have to try it out later, none of the 1.16.0 release notes suggest a change that would cause this problem. (Are you integrating using a repository dependency or a local path dependency?)

@jrose-signal
Copy link
Contributor

Doing some local testing, it also seems like 1.16 turns on "Build Library for Distribution" for dependencies, which is (a) not a valid thing for them to be doing, and (b) not supported by libsignal. I don't know if that's the cause of these errors (I got a compilation error before even getting to linking), but it's something to be aware of.

@jrose-signal
Copy link
Contributor

Looks like they're reverting that, so maybe there'll be a 1.16 update soon to get past that issue. Then we'll see if there's another one for you. CocoaPods/Xcodeproj#992

@arivas87
Copy link
Author

arivas87 commented Nov 4, 2024

Sure! It seems to work with the latest CocoaPods release. Due to the end of active support, it would be great to start thinking about a migration to SwiftPM.

@jrose-signal
Copy link
Contributor

Only when Signal-iOS does, and I think that's a ways off, but I'll let the iOS team know. For now, closing this, glad it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants