https://kotlinlang.org logo
#ios
Title
# ios
w

willyrs

07/15/2020, 10:24 AM
Can one create a framework for mac catalyst? I’ve built the target:
Copy code
macosX64("mac") {
    binaries {
        framework("mac")
    }
}
but when I try to import the framework it says:
Copy code
/Users/*/Projects/RTE/apod-kampkit/ios/ApodKMP.xcodeproj Building for Mac Catalyst, but the linked and embedded framework 'mac.framework' was built for macOS. You may need to restrict the platforms for which this framework should be linked and embedded in the target editor, or replace it with an XCFramework that supports both platforms.
I’m a bit confused since it clearly says that the framework is (correctly?) built for macOS. I’ve also tried to put this framework in a normal macOS app project and it works
🚫 1
t

Thomas

07/15/2020, 10:53 AM
Unfortunately Mac Catalyst is not supported yet. See https://github.com/JetBrains/kotlin-native/issues/3713
53 Views