I’m getting all sorts of errors and problems with XCode 4.1 GM for Lion (I have Lion GM).
When I try to run my app on my iPhone, I get this error. How can I fix it?

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Go to window -> organizer -> click the devices tab, and then select Provisioning profiles. This should list the provisioning profiles you have imported into xcode. Click each one, if they are not valid there will be a stripped yellow/brown bar on the top of the screen and a warning. If you have invalid profiles ensure that they have not expired, and that you have the valid developer profiles to go along with them.
On at least one occasion I found that removing all my profiles, from xcode as well as from my device, and re-importing them solved my problem.