Thank you for a quick response! Sounds very reassuring.
Would like to mention, that I planned to use CocoaPods for the distribution. I've noticed that, if my framework has dependencies specified in a .podspec
file, then all the dependencies are explicitly added to the client's app during pod install
phase. Even if I'm using @_implementationOnly
import. Is it because CocoaPods adds dependencies dynamically instead of linking them statically like SPM? Should I be worried if these dependencies can't be built with the BUILD_LIBRARIES_FOR_DISTRIBUTION
flag?
I'm not sure whether SPM will be an option for me, but how it works internally, I mean will the dependencies of the framework be build with the BUILD_LIBRARIES_FOR_DISTRIBUTION
flag or it's not happening when they're statically linked to the framework?