C API for a Swift framework – always exposed?
问题 I am building a iOS SDK in Swift 5.3, and I define all classes (except the documented API) as internal (i.e. using the default access wherever I cannot use private ). The SDK is distributed as a cocoapod dynamic framework. So far so good. My SDK has a C component; these functions are used internally for some calculation, and are not expected to be exposed to the app developers. These are exposed to Swift via the unmbrella header, and my Swift code works with them as expected. Unfortunately,