Code Sign error: Provisioning profile can't be found

PeterK picture PeterK · Apr 22, 2011 · Viewed 58.8k times · Source

I have been working the whole day to try to build my app on my device.

I get this error when I try to build on my device.

I have been reading about this problem but do not really understand how to fix it. The following is where I would believe the problem is. I am new on this so I have no experience how to solve this.

When I open the "Dont Code sign" I have "Automatic profile selector (recommended)" with two lines I can select and also "My profile for dev" with one line to select. Do not know if this is where the problem is?

Any help is appreciated.

enter image description here

Answer

jyap picture jyap · Aug 14, 2011

Here's how I did it.

  • Shut down Xcode.
  • Back up the project.pbxproj file.
  • Edit the project.pbxproj file and remove lines of instances where it mentions the old provisioning profile.
    • eg. Delete line:
    • PROVISIONING_PROFILE = "8D024EDA-DC05-40DF-B3EB-536392615EE2";
  • Restart Xcode and perform a full clean of the project.
  • It should then build without warnings.

Enjoy!