I am trying to launch my app on device. It is launching successfully on the simulator.
Check Product Name for dots "." "." are not allowed in Product name.
I just had this issue. I had to open the app on device and tap Trust Computer. No need for me to reboot everything 20 times, yay.
As all of the above answers didn't helped for me I'll publish my solution:
Deleting all the occurrences of xcuserdata
folders in .xcodeproj
and .xcworkspace
and restarting Xcode fixed the problem. To delete it right click your_app_name.xcodeproj
and/or your_app_name.xcworkspace
in your app folder and select "Show Package Contents"
. I hope that help someone to save some time.
If your provisioning profile and code sign everything is alright then try once Quit and Restart your XCode. It will work for me.
Selection in provisioning profiles may cause this problem. So while launching an app on to the device, make sure you are using the development profile & not the distribution profile. I have been facing the same issue. But got away with it using the same process.
Check for Project > Build Settings > Provisioning profile & select your development profile.
And also take care of Code Signing Identity in the same tab. Make sure you choose both the identities of Developer & NOT of Distribution.
Check whether the device memory is full.