I'm trying to build a XCFramework that requires some dependencies. In order to properly build the framework, I must set BUILD_LIBRARIES_FOR_DISTRIBUTION as true. Now the issue is that my dependencies don't support ABI stability and can't be build with BUILD_LIBRARIES_FOR_DISTRIBUTION flag. So in order to workaround this (from 'let' property 'value' may not be initialized directly in SwiftNIOConcurrencyHelpers · Issue #1063 · grpc/grpc-swift · GitHub) I disabled this flag for all my dependencies as I'm using CocoaPods in this case. My questions are:
- Is it possible to disable this flag for all my dependencies using SPM?
- What could happen if the flag is disabled and framework's dependencies aren't ABI stable? Is it possible, that on runtime, for the client app the not-compatible version my framework dependency could be loaded? Is it possible that the framework's dependency is shared between multiple apps?