Support for hierarchical native targets
See original GitHub issueI struggled for a while trying to figure out what I did wrong but finally realized that the plugin doesn’t seem to work for the parent ios() target, and instead only works on specific iosX64 or iosArm64 targets.
Is this a limitation of how this works? For instance, are the downloaded bindings specific to a precise platform, and there is no way to download generic iOS bindings?
Currently I find it quite painful to have to copy-paste iOS related code into iosX64Main and iosArm64Main instead of just having to write it once in iosMain.
Did I miss something here? If not, is there any workaround for this?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Share code on platforms - Kotlin
Share code on similar platforms · Use target shortcuts to easily create the hierarchy structure for common combinations of native targets.
Read more >Support hierarchical project structure of multiplatform projects ...
Support hierarchical project structure of multiplatform projects in the new model ; Type, Meta Issue M ; Target versions, 1.4.0 ; State, Fixed...
Read more >Support hierarchical KMM · Issue #2044 · cashapp/sqldelight
A problem occurred configuring project ':shared'. The project has more than one target for the requested platform: ios_x64". This is my shared ...
Read more >5.5. Hierarchical builds - SCons
5.5. Hierarchical builds ... When a subsidiary configuration file is read from a subdirectory, all of that configuration file's targets and build rules...
Read more >Hierarchical firewall policies | VPC - Google Cloud
Hierarchical firewall policy rules can be targeted to specific VPC networks and VMs by using target resources for networks and target service accounts...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Closing this issue since it was a misconfiguration unrelated to the plugin itself.
If you want to add an entry in the README for other folks that might have the issue, and have an idea on where to put it exactly, and how to phrase it, feel free to send a PR.
You miss this:
See at the bottom of this page (which is the first Google search result for “Kotlin HMPP”): https://kotlinlang.org/docs/mpp-share-on-platforms.html#use-native-libraries-in-the-hierarchical-structure