Is it possible to build for Mac Catalyst? If I tr...
# kotlin-native
t
Is it possible to build for Mac Catalyst? If I try to build my Kotlin framework for iosX64 I get an error in Xcode that it was built for iOS Simulator. If I try to use macosX64 I get an error that it was built for macOS. So it looks like the framework needs to be specifically built for Mac Catalyst. Any ideas how to do this if it is possible?
b
It's a special target. It's neither Mac nor iOS, but a special variant. There are issues/PRs that reference wanting support: • https://github.com/JetBrains/kotlin-native/search?q=catalyst&type=Issueshttps://github.com/JetBrains/kotlin/search?q=catalyst&type=Issues Not sure if there's a KT issue yet, but it's probably worth filing one. I believe catalyst frameworks also have to be xcframeworks, which K/N also doesn't support yet (not 100% sure on that requirement though)
t
@basher Yes it looks like there is a special C flag needed to build for Catalyst. Thanks for the links. I created a GitHub issue here: https://github.com/JetBrains/kotlin-native/issues/3713
👍 1