I'm trying to create XCFramework, which has inside several dependencies imported with SPM. I set BUILD_LIBRARIES_FOR_DISRTIBUTION
to YES for target.
But this warning inside of XCFramework Project next each line import <ModuleName>
makes me curious: is there something wrong there?
Warning:
Module 'ModuleName' was not compiled with library evolution support; using it means binary compatibility for 'XCFrameworkName' can't be guaranteed
Note: Archiving and creating xcframework succeeded.
XCFramework
is linking toModuleName
butModuleName
isn't exporting the .interface linker file that is needed to guarantee ABI compat (because it doesn't have BUILD_LIBRARIES_FOR_DISTRIBUTION set). The risks of doing that are unclear to me though, I am looking for that information still. My question is, is there a risk that the library will link and potentially crash at runtime due to ABI incompat? – Rozek