This chapter no longer describes how to debug a real machine, but keeps collecting errors encountered during debugging, recording them, and learning and making progress together.
Error 1: cocould not change executable permissions on the application.
This error means that the same bundle identifier cannot be used repeatedly. In other words, the device we Debug on the real machine has already debugged and installed COM. xxx. ABC identifier application, and now a new project is created. In order to save trouble, the identifier is used and then debugged on this device. This error will be prompted.
Solution: Delete the application from the device and debug the application.
Error 2: a valid provisioning profile for this executable was not found.
For this error, select the project -- targets -- Build settings-Code Sign identity-to check whether the developer certificate is selected in the debug option.
If the debugging certificate is correct, open the organizer panel and check whether the provisioning profiles of the device have the corresponding provision file. If yes, import the file and debug it again.
If an error occurs while importing the local provision file, which of the following may be that your current developer certificate has been revoke and you have logged on to pai.apple.com.
Check whether the certificate is invalid.
If it is invalid, click this line and edit
If your device is not checked, remember to check it, save it, save it, and download the file. Import the file on the organizer panel.
Reprinted: http://blog.csdn.net/mad1989/article/details/8998319