Is it possible to have Xcode in the background but compile and run the current project via a Script?
I'm mainly using AppCode for development, but would like to run from Xcode through a hotkey. AppCode does not properly show a compilation-progress bar (Xcode on second screen can), also AppCode's debugging abilities are not as advanced as Xcode's. Otherwise AppCode is faster and better.
It's possible from an AppleScript, here's a sample script (tested on Sierra and Xcode Version 8.3.3):
To run on a specific device: I don't have devices to test, but I use the simulator, try this script: