What's the news of this ?
I talk about my use case. I'm using SwiftPM with Xcode (not open-source swift packge manager imple mentation)
I found that Swift Package Manager does not allows me to make a framework with
-enable-library-evolution (Called BUILD_LIBRARY_FOR_DISTRIBUTION in Xcode)
So, I decide to add the compiler flags by my own, using the
.swiftSettings. However, it does not works because of this. Showing:
The package product 'SDWebImageSwiftUI' cannot be used as a dependency of this target because it uses unsafe build flags.
So I'm sucked. And stop to support SwiftPM to let our user to choose CocoaPods && Carthage instead.
Another issue, I want to
weak linking SwiftUI and Combine system framework. In Xcode, I can simply use
-weak_framework SwiftUI -weak_framework Combine, or the Linked library to Optional (In Build Phase).
However, when using SwiftPM, again, it does not have a
linkerSettings for weak linking (only non-weak linking, good). When using
unsafeFlags, the error appears the same.
So, as a framework author, I found it hard to implements the same easy thing compared to Xcode project itself. And can anybody here tell me: Why Swift Package Manager using Swift 5.1, does not support -enable-library-evolution ?