But in SPM when I add any combination of "-Xlinker -compatibility_version 1.0 -current_version 1.0.1" always got an error
swift build -v -Xlinker -compatibility_version 1.0 -Xlinker -current_version 1.0.1 error: unexpected argument 1.0; use --help to list available arguments
I can set current_version and compatibility_version when using
Xcode
FYI, these constructs are effectively deprecated. They might have made sense back at the dawn of Mach-O but they don’t make a lot of sense given the way we ship software for Apple platforms today. Libraries typically evolve in a binary compatible fashion. In extreme cases, where you want to completely break binary compatibility, you would simply change the library’s name.
Hello, I face a problem with dependency A that require a dependency B to have a version set:
Reason: Incompatible library version: XXXX requires version 1.0.0 or later, but AFNetworking provides version 0.0.0
I tried to set the current_version of the AFNetworking to solve this issue. As the build is triggered directly by Xcode, I can't add these options as-is. I found in the PackageDescription that I can add: