This is something that keeps catching me out… so much for learning from my mistakes.
Every so often I suddenly encounter a problem when trying to debug iPhone programs on an iPhone. The application just won’t load. Builds OK, but won’t launch on the iPhone – complains that the profile is out of date (even when I know it isn’t). That is, there is no error report to go by, the program just won’t run.
This problem seems to be caused by an expired profile on the iPhone (and no, not the profile your App is using, any expired profile seems to cause this problem). The solution is to go to: Setting -> General (scroll down to the bottom) -> Profiles, find the profile that has expired and delete it. Everything should now work.
By the way, don’t be fooled by the ‘The name (“common name”) of a valid code-signing certificate in a keychain within your keychain path. A missing or invalid certificate will cause a build error. [CODE_SIGN_IDENTITY]‘ in project info as this has nothing to do with the problem.