How to avoid Passcode screen every time the project compiles?

I recently lock my phone with a passcode and every time I compile an project xcode says its running but the device does not react I have to unlock and compile again every time, any ideas how to work around this without disabling passcode lock?