Application not automatically launching in device and getting error on xcode

Solutions Collect From Internet About “Application not automatically launching in device and getting error on xcode”

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