How can I run a rust program (from a zip from GitHub) be run on iOS?

-4 points · 9 comments · view on lemmy.world

9 Comments

KindaABigDyl@programming.dev · 16 pts · 115d (4 replies)

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 · 1 pts · 115d (3 replies)

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

SteveTech@aussie.zone · 4 pts · 115d (2 replies)

I think things still need to be compiled specifically for a-shell, you can't just run a random binary. Also iOS is more closely related to BSD, so Linux apps wouldn't work anyway.

cheese_greater@lemmy.world · 0 pts · 115d (1 reply)

yt-dlp wasnt

SteveTech@aussie.zone · 4 pts · 115d

Python would be, and yt-dlp is a Python app.

eightys3v3n@lemmy.ca · 4 pts · 115d

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.

slazer2au@lemmy.world · 3 pts · 115d

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

xtools@programming.dev · 2 pts · 112d

Apple:

vathecka@lemmy.radio · 2 pts · 115d

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