- ProductSDK — xcframework that will be integrated by clients in their host apps (iOS platform).
- BusinessLogic — dependency of ProductSDK that shouldn't be exposed to developers integrating ProductSDK
- Added BusinessLogic.xcframework to ProductSDK.
@_implementationOnly import BusinessLogicto hide BusinessLogic.
- Then archived and created final ProductSDK.xcframework.
When ProductSDK.xcframework is added to host application, I can
import BusinessLogic returns no such module, which is expected.
When the app is run, it works on simulator, but it crashes in runtime on real device with an error: "BusinessLogic image cannot be found".
How to add BusinessLogic dependency to ProductSDK xcframework? Is it even possible for iOS platform?