@@ -693,31 +693,32 @@ The Kotlin compiler produces `.klib` artifacts for publishing Kotlin libraries.
693
693
Previously, you could get the necessary artifacts from any host, except for Apple platform targets that required a Mac machine.
694
694
That put a special restraint on Kotlin Multiplatform projects that targeted iOS, macOS, tvOS, and watchOS targets.
695
695
696
- Kotlin 2.1.0 lifts this restriction, achieving full support for cross-compilation.
696
+ Kotlin 2.1.0 lifts this restriction, adding support for cross-compilation.
697
697
Now you can use any host to produce ` .klib ` artifacts,
698
698
which should greatly simplify the publishing process for Kotlin and Kotlin Multiplatform libraries.
699
699
700
- > To build [ final binaries] ( multiplatform-build-native-binaries.md ) for Apple targets, you still need to use a Mac machine.
701
- >
702
- {style="note"}
703
-
704
- For more information, see [ Publishing multiplatform libraries] ( https://kotlinlang.org/docs/multiplatform-publish-lib.html ) .
705
-
706
- #### How to enable the publishing Kotlin libraries from any host feature
700
+ #### How to enable publishing libraries from any host
707
701
708
- This feature is currently [ Experimental] ( components-stability.md#stability-levels-explained ) .
709
- To try it out in your project, add the following binary option to your ` gradle.properties ` file:
702
+ To try cross-compilation out in your project, add the following binary option to your ` gradle.properties ` file:
710
703
711
704
``` none
712
705
# gradle.properties
713
706
kotlin.native.enableKlibsCrossCompilation=true
714
707
```
715
708
716
- #### Leave feedback on the publishing Kotlin libraries from any host feature
709
+ This feature is currently Experimental and has some limitations. You still need to use a Mac machine if:
710
+
711
+ * Your library has a [ cinterop dependency] ( native-c-interop.md ) .
712
+ * You have [ CocoaPods integration] ( native-cocoapods.md ) set up in your project.
713
+ * You need to build or test [ final binaries] ( multiplatform-build-native-binaries.md ) for Apple targets.
714
+
715
+ #### Leave feedback on publishing libraries from any host
717
716
718
717
We're planning to stabilize this feature and further improve library publication in future Kotlin releases.
719
718
Please leave your feedback in our issue tracker [ YouTrack] ( https://youtrack.jetbrains.com/issue/KT-71290 ) .
720
719
720
+ For more information, see [ Publishing multiplatform libraries] ( multiplatform-publish-lib.md ) .
721
+
721
722
### Support for non-packed klibs
722
723
723
724
Kotlin 2.1.0 makes it possible to generate non-packed ` .klib ` file artifacts.
0 commit comments