countly-sdk-ios icon indicating copy to clipboard operation
countly-sdk-ios copied to clipboard

Added macOS as supported platform

Open AshStefanOltmann opened this issue 3 years ago • 3 comments

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.

AshStefanOltmann avatar Mar 25 '22 09:03 AshStefanOltmann

Unfortunately the SDKROOT must be changed to "macosx"

Whet repercussions would this introduce?

ArtursKadikis avatar Mar 25 '22 09:03 ArtursKadikis

Here is the resulting XCFramework created by Carthage: Countly.xcframework.zip

ghost avatar Mar 25 '22 09:03 ghost

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.

ghost avatar Mar 25 '22 09:03 ghost