I has a SDK named ProductSDK. This SDK also have two dependency sdks.
- CommonDependencySDK
- AdvanceDependencySDK
And try to generate XCFramework in ProductSDK. My use case is, 2 types of use case in this ProductSDK. One is ProductSDK with CommonDependencySDK and another one is ProductSDK with CommonDependencySDK and AdvanceDependencySDK. Handle this case using some macros in my ProductSDK.
But now i need two version of XCFramework for my ProductSDK. One version is compiled ProductSDK source with CommonDependencySDK and another one is ProductSDK source with CommonDependencySDK and AdvanceDependencySDK.
Anyone have any ideas to this use case?
Or what is a alternative way of handling optional dependency instead of macros.
#if canImport(SDKName)
// Some codes
#else
// Some codes
#endif