question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for hierarchical native targets

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
LouisCADcommented, Aug 18, 2021

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.

1reaction
LouisCADcommented, Aug 18, 2021

You miss this:

kotlin.native.enableDependencyPropagation=false

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found