How can I run a rust program (from a zip from GitHub) be run on iOS?
from cheese_greater@lemmy.world to programming@programming.dev on 05 May 21:07
https://lemmy.world/post/46476626

#programming

threaded - newest

slazer2au@lemmy.world on 05 May 21:18 next collapse

Can iOS even run rust applications? What is the repo?

KindaABigDyl@programming.dev on 05 May 21:52 next collapse

You can’t.

Mobile application require strange wrappings and packagings to run native code like that.

On android you could potentially use termux and build from source for aarch64, but iOS doesn’t have anything like that.

Furthermore, iOS is very locked down, so running some random source from GitHub is essentially impossible without proper developer tools and a mac to run them.

cheese_greater@lemmy.world on 05 May 22:07 collapse

I wonder if i can run it with a-shell, its a terminal/linux app for ios i use for downloading videos

vathecka@lemmy.radio on 05 May 23:26 next collapse

Youd have to bridge it into swift or objective c using the c interop system and then then manually invoke main.

eightys3v3n@lemmy.ca on 06 May 02:21 collapse

I used to write C++ and compile + run it on a jailbroken iPhone. It worked fine but obviously had no access to most of the Apple hardware, interfaces, or anything else.