Wednesday, 1 May 2019

Executing Unix/arbitrary commands on iOS

This is not for a production application - I'm just tinkering for the fun of it (on a device, not the simulator).

Is there any mechanism for executing arbitrary binaries on iOS? Say, ls.

I've tried posix_spawn(), but it always returns a status of 1.

system() doesn't even compile, it fails with: 'system' is unavailable: not available on iOS

fork() is similarly not allowed

I realize it's a long-shot, but I have a couple (local/personal) projects that are written as pre-compiled ARM binaries and I'd love to have them available on my iPad. (Plus it's just a fun experiment.)

Sidenote: I haven't jailbroken an iOS device in years and I'm hoping to avoid it - if the above isn't possible with stock iOS, I'll just sigh and move on.



from Executing Unix/arbitrary commands on iOS

No comments:

Post a Comment