Run Xcode as the target app
Add compatibility for Xcode 6 and 6.1b1
Cleanup