I am trying to launch my app on device. It is launching successfully on the simulator.
- List item
- I use 7.1 SDK
- Xcode 5
- And the device is a 7.1 iPhone 4S
I have tried:
- Clean
- Clean Build Folder
- Deleting app
- Disconnecting/Reconnecting device
- Booting device
- restarting Xcode
What can I do to make it work?
Could it be something with Code Signing?
Currently i have it set to 'Dont Code Sign'
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 clickyour_app_name.xcodeproj
and/oryour_app_name.xcworkspace
in your app folder and select"Show Package Contents"
. I hope that help someone to save some time.To run your app on a device, you will perform these tasks that follow:
Request a development certificate.
Add your device to the portal.
Code sign your app.
Launch your app on the device.
For more detail check this
I literally restarted my iPad, that was connected for testing the app, and that resolved the issue.
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.
I got the same problem and after looking at the answers here I found mine. The issue at hand was: my dev distribution certificate was gone from iOS Dev Center, so I just assume it had timed out. I didn't get a nice warning though, just the above error - installing worked but debugging didn't. So I had Xcode regenerate a new one for me.
Below two steps solved for me:
For
xcode
version: 7.2This solved in my case.