a-shell icon indicating copy to clipboard operation
a-shell copied to clipboard

iOS native codes

Open HeavySnowJakarta opened this issue 2 years ago • 6 comments
trafficstars

After being annoyed with the ecosystem of WebAssembly, I'm looking for dealing with iOS native codes now. I've got ways of compiling static libraries, but as I have no experience of iOS development, I wonder how to add a binary code to a-Shell itself. For example, add a simple cli command, from getting the source to opening a pr. I know it may be pretty hard to understand the difference between different tool chains like make and cmake or configuring the cross-compile targets.

HeavySnowJakarta avatar May 09 '23 11:05 HeavySnowJakarta

Apple strictly forbid running binaries not approved via AppStore. This is why a-Shell can only run interpreted script languages (Python, javascript, wasm, R, Lua, perl, scala, ruby, vbscript, csscript, dart, shell script, etc.)

Emasoft avatar Jun 07 '23 18:06 Emasoft

would be nice to have ruby, I know its not as popular but it has good scripting features, IMO

nixbytes avatar Sep 30 '23 14:09 nixbytes

Just curious is their any hope or roadmap to include Ruby, I know if maybe asking a lot

nixbytes avatar May 09 '24 23:05 nixbytes

I tried compiling Ruby last week; it didn't work within the limited time I had then. I'll have to go back to it with more time ahead of me.

holzschu avatar May 10 '24 01:05 holzschu

Since it's a open source perhaps I can help. What are some of issues or errors when compiling? Perhaps I can replicate and troubleshoot it's, then do a pull request?

nixbytes avatar May 10 '24 01:05 nixbytes

You can try. I was trying to compile to WebAssembly. It should be easier once I've finished updating the SDK and compiler.

If you want to do it now, you should try compiling to Arm64 binaries, using Apple compiler and SDK. Then you'll need to ensure memory gets released when Ruby leaves.

holzschu avatar May 10 '24 02:05 holzschu