-
Notifications
You must be signed in to change notification settings - Fork 564
Compiling SwiftUi for desktop when using cocoaPods fails #3134
Comments
Hello! Thank you for the report. |
In the kotlin project I am targeting macosX64, iosX64, iosArm64. I think it should be reproducible with any simple project. I can make one if you would like. |
Okay, I see. If it is possible to have an accurate way to reproduce this, it would be very helpful. |
https://github.com/luca992/SwiftUi-Destop-Test-Project Just open Running on iphone simulator works. |
FYI: CocoaPods/CocoaPods#8877 (comment) So the code needs to be compiled with extra CFLAGS and LDFLAGS. I am yet unsure if this can be done easily in build.gradle for Kotlin Native or Multiplatform, or a bigger change is needed. |
Is there anyway to workaround this? |
This is not supposed to work.
I'm not aware of any. |
So does a new target for swiftui desktop need to be created? |
This should help, but I'm not sure that this is the only option. |
related: |
According to migrating issue tracking to YouTrack, closing this issue in favour of https://youtrack.jetbrains.com/issue/KT-40442 |
The following error is thrown:
Looks related to this
Libraries coming into the UIKit for Mac environment need to be compiled for the iOS platform, not the macOS platform.
The text was updated successfully, but these errors were encountered: