# Kotlin Native dependency is not accessible at runtime on the target platform

**URL:** <https://discuss.kotlinlang.org/t/kotlin-native-dependency-is-not-accessible-at-runtime-on-the-target-platform/18547>\
**Category:** Multiplatform\
**Created:** [July 23, 2020, 4:17pm UTC](https://discuss.kotlinlang.org/t/kotlin-native-dependency-is-not-accessible-at-runtime-on-the-target-platform/18547 "2020-07-23T16:17:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![skolson5903](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@skolson5903](https://discuss.kotlinlang.org/u/skolson5903)\
**Post date:** [July 31, 2020, 9:12pm UTC](https://discuss.kotlinlang.org/t/kotlin-native-dependency-is-not-accessible-at-runtime-on-the-target-platform/18547/2 "2020-07-31T21:12:04Z")

</div>

Maybe you have already fixed this issue since its been a week or so, but why did you use the api function in your dependency below?

> [@NerV-0-sol](#):
>
> `api("com.ionspin.kotlin:bignum:0.1.6-1.3.72-SNAPSHOT")`

Seems like it should have been

> [@NerV-0-sol](#):
>
> `implementation("com.ionspin.kotlin:bignum:0.1.6-1.3.72-SNAPSHOT")`

I’m in the process of trying this library out in a similar way, will know in a couple days if I have issues too 🙂 One challenge I’m having though is I don’t see how to convert a BigDecimal into any of the native types. I need a .toLong(), .toInt() etc and they don’t seem to exist. Am I missing something or am I gonna have to do extension functions?

---

_[View the full topic](https://discuss.kotlinlang.org/t/kotlin-native-dependency-is-not-accessible-at-runtime-on-the-target-platform/18547)._
