How to Hide Internal Dependencies in Swift Framework's .swiftinterface File?
02:31 15 Aug 2024

I’m building a Swift framework that uses internal dependencies like Alamofire, Lottie, and TensorFlowLite. These are only needed within the framework itself, not by the users of the framework.

But when I build the framework, these dependencies show up in the .swiftinterface file, which seems to imply that users need to have them too.

What’s the best way to ensure these internal dependencies stay hidden from the framework’s public interface and that users don’t need to install them?

Thanks!

SwiftInterface

ios swift swiftui tensorflow-lite xcframework