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

willyrs

07/15/2020, 10:28 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
w

willyrs

07/15/2020, 10:54 AM
oh, I missed it! thanks! I’ll create two different projects then
d

dazza5000

09/09/2020, 7:11 PM
How did you fix this build issue when making a framework?
figured it out - had to change something in the embed frameworks section
4 Views