Does Apple provide a way for an iOS app (running on a connected iPhone or the simulator) to execute a shell command on the host Mac? This is to help with development/debugging. I want to be able to tap a button in the app and have it run a script on the Mac.
I have a working solution that involves running a server on the Mac and having the iPhone talk to it but was wondering if there's another approach provided by Apple. UIAutomation's UIAHost looked relevant but I want to run the command without Instruments.