Application not automatically launching in device and getting error on xcode

I'm getting a weird bug on Xcode 4.5. When i tried to run my application on Ipad 2 from xcode with iOS 6, I'm getting this error.

Error

I done the following methods to run the application, but no luck.

  1. Cleaned the project and run
  2. Restarted the device
  3. Restarted xcode

I have a valid certificate in my machine and the application is installing on the device but it's not launching automatically. What could be the issue ?

Thanks in advance


That is really annoying. This error happens in a number of different situations. Sometimes restarting the Xcode, fixes the problem. If not, follow these steps:

Disconnect your device.

Delete the app from your device.

Quit Xcode (Do not just simply close the window, quit it)

Delete derived data folder (~/Library/Developer/Xcode/DerivedData/-gbrvhlvwmpiobxdujegtghggrffp - or something like that)

Now start Xcode once again, connect device and run the project. It should work fine.

from DhilipSiva blog