If you update your profile, compile your iphone project, and find the following error, you will not succeed in any case, that's really annoying.
Profile error not found "CodeSign error:no provisioning Profile at path '/users/yourname/library/mobiledevice/ Provisioningprofiles/f87a055a-ec0d-4f19-a015-57ab09debecb.mobileprovision ' "
X
At this time, copy the above line error message, then close the project, open the Finder to your project file Xxxx.xcodeproj right-click, select Show Package Contents (display content) menu, In the newly opened finder, find project.pbxproj, use a text edit to open it, use the Find function to find all the locations with that line of code, delete F87A055A-EC0D-4F19-A015-57AB09DEBECB can , there should be at least two places
after deleting, save this project.pbxproj file, re-open your project with Xcode, and then compile and try
Profile error not found "CodeSign error:no provisioning Profile at path '/users/yourname/library/mobiledevice