Added macOS as supported platform
Running carthage update --use-xcframeworks with the Cartfile github "Countly/countly-sdk-ios" created only a frameworks for iOS, because in "Build Settings" - "Architectures" - "Supported Plattforms" only iOS was set (seemingly the default value).
Adding explicitly macosx here also adds a macOS framework for Intel and Apple Silicon to the output.
Carthage now creates a Countly.xcframework containing ios-arm64_armv7, ios-arm64_i386_x86_64-simulator and also macos-arm64_x86_64.
Unfortunately the SDKROOT must be changed to "macosx", because otherwise the building with Carthage fails for some reason.
I verified that the resulting XCFramework can be used on native macOS apps (not only Catalyst), real iOS devices and iOS simulator. These are the targets for my app.
Unfortunately the SDKROOT must be changed to "macosx"
Whet repercussions would this introduce?
Here is the resulting XCFramework created by Carthage: Countly.xcframework.zip
Whet repercussions would this introduce?
I don't know if this is a problem at all. I'm not an expert here. I just can say that it works for me.