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

Module 'SwiftProtobuf' was not compiled with library evolution support; using it means binary compatibility for '(my framework)' can't be guaranteed #1416

Closed
tkafka opened this issue Jul 6, 2023 · 2 comments

Comments

@tkafka
Copy link

tkafka commented Jul 6, 2023

I get the following error during build on Xcode 15 - I am using SwiftProtobuf in my custom framework (with shared app code). Is it possible to build SwiftProtobuf in a binary compatible way?

Please be sure to include:

  • what OS you are developing on (Linux or macOS, including the version): 13.4.1
  • for macOS, what version of Xcode you are using (xcodebuild -version): 15.0 beta 2
  • what version of Swift is your code set to compile with (i.e. from project
    settings, etc.): 5.9
  • what branch/tag of SwiftProtobuf you are using (1.0.0, etc.): 1.22.0 release
  • if you are getting compile errors, please be sure include all errors/warnings,
    sometimes the error before the one you are stuck on is important.:
Module 'SwiftProtobuf' was not compiled with library evolution support; using it means binary compatibility for '(my framework)' can't be guaranteed
@Lukasa
Copy link
Contributor

Lukasa commented Jul 6, 2023

Please see #1101 for discussion of library evolution mode.

@Lukasa
Copy link
Contributor

Lukasa commented Jul 6, 2023

The TL;DR here is that Protobuf does not support a stable ABI today. To use it in this way, you can use it with @_implementationOnly and statically link it.

@thomasvl thomasvl closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants