Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to to run separate processes on iOS

How can I run a separate process (the executable will be in the main bundle) on iOS? NSTask seems to be missing...

BTW I don't care if this will be rejected by Apple, as it will never be submitted.

like image 607
cfischer Avatar asked Sep 16 '25 05:09

cfischer


1 Answers

There is no way to run a seperate process other than launching a process that can run in background from xcode or the home screen.

If you want process 1 to kick off process 2 then you're out of luck.

However, if you want process 1 to run in background and then process 2 to be launched later and communicate with process 1 (via memory-mapped files or network) then you can do that as xcode will allow you to run more than one application on the simulator at a time.

Alternatively, you can emulate a process via a thread but that depends on what you want to do.

like image 54
Cthutu Avatar answered Sep 17 '25 18:09

Cthutu