# Exporting a julia library on iOS and Android

**URL:** <https://discourse.julialang.org/t/exporting-a-julia-library-on-ios-and-android/124975>\
**Category:** General Usage\
**Tags:** package-compiler, android\
**Created:** [January 20, 2025, 4:13pm UTC](https://discourse.julialang.org/t/exporting-a-julia-library-on-ios-and-android/124975 "2025-01-20T16:13:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfespo97](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alfespo97/32/204073_2.png) [@Alfespo97](https://discourse.julialang.org/u/Alfespo97)\
**Post date:** [January 20, 2025, 4:13pm UTC](https://discourse.julialang.org/t/exporting-a-julia-library-on-ios-and-android/124975/1 "2025-01-20T16:13:57Z")

</div>

Hi everyone, i’ve been using Julia for 2/3 months and i’ve created an optimization function with Ipopt to solve a non-linear problem. Now i want to export this function to a library to make it execute on smartphone with OS such as iOS and Android. My question is : is it possible with PackageCompiler to create this library and make it executable on smartphone with Dart for example? I’m not an expert of those languages but a friend of mine told me that is possible to integrate julia on smartphones so i’m asking you for advices. Thank you for your help and support!

---

<div class="post-metadata">

**Author:** ![GeorgeGkountouras](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@GeorgeGkountouras](https://discourse.julialang.org/u/GeorgeGkountouras)\
**Post date:** [January 20, 2025, 4:39pm UTC](https://discourse.julialang.org/t/exporting-a-julia-library-on-ios-and-android/124975/2 "2025-01-20T16:39:04Z")

</div>

Perhaps the commercial Syslab compiler covers your needs?

[https://github.com/Suzhou-Tongyuan/syslab-deploy](https://github.com/Suzhou-Tongyuan/syslab-deploy)

---

<div class="post-metadata">

**Author:** ![Janis\_Erdmanis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/janis_erdmanis/32/10869_2.png) [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Post date:** [January 20, 2025, 5:43pm UTC](https://discourse.julialang.org/t/exporting-a-julia-library-on-ios-and-android/124975/3 "2025-01-20T17:43:12Z")

</div>

To my knowledge, this has not been attempted so far. There would be two complications, though:

- PackageCompiler produces large binaries/libraries which would bloat the application;
- Cross-compilation is currently not supported

The bloat from PackageCompiler is being worked on with the `juliac`, which seems to be progressing well and can produce small binaries. Regarding the lack of cross-compilation support, it could be overcome for Android platforms treating it as arm64 Linux and compiling the application on Raspberry Pi or using GitHub actions.

I would be eager to see progress in this area.

---

<div class="post-metadata">

**Author:** ![Alfespo97](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alfespo97/32/204073_2.png) [@Alfespo97](https://discourse.julialang.org/u/Alfespo97)\
**Post date:** [January 21, 2025, 2:32pm UTC](https://discourse.julialang.org/t/exporting-a-julia-library-on-ios-and-android/124975/4 "2025-01-21T14:32:33Z")

</div>

Thank you for your suggestion, i’ll explore this solution to see if it is suitable for my application.

---

<div class="post-metadata">

**Author:** ![Alfespo97](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alfespo97/32/204073_2.png) [@Alfespo97](https://discourse.julialang.org/u/Alfespo97)\
**Post date:** [January 21, 2025, 2:36pm UTC](https://discourse.julialang.org/t/exporting-a-julia-library-on-ios-and-android/124975/5 "2025-01-21T14:36:26Z")

</div>

Thank your for your help! I’ll follow your advice about Raspberry Pi cause i’ve got some experience on it and maybe it is the right way to overcome my problem.
