iOS device screen off after build/run the app

I’ve just encountered very strange problem. I had my device connected to my Mac, so I built my ionic app with ionic build ios and then ran it with ionic run ionic ios --device. Then the log threw that error:

2015-09-06 23:11:31.013 ios-deploy[4951:1225715] [ !! ] Error 0xe800003a: áDyˇ AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)

Since that time my phone screen is turned off but the device is active itself it can receive calls but as I said the screen is completley turned off. I had that error before and I solved it by staring xcode and re-running the app from there but this time it didn’t help.