• KindaABigDyl@programming.dev
    link
    fedilink
    arrow-up
    13
    ·
    3 days ago

    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.

  • eightys3v3n@lemmy.ca
    link
    fedilink
    arrow-up
    4
    ·
    2 days ago

    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.

  • vathecka@lemmy.radio
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    2 days ago

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