Skip to content

Instantly share code, notes, and snippets.

@jalakoo
Created April 22, 2013 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jalakoo/5436989 to your computer and use it in GitHub Desktop.
Save jalakoo/5436989 to your computer and use it in GitHub Desktop.
Solve Provisioning Profile Can't Be Found Issue
Sometimes when you transfer your project to another computer and especially when you create a new developer certificate in the progress, you’ll run into difficulties. When you try to run your app on a device, Xcode will throw the following error:
Code Sign Error: Provisioning Profile '###ID###' can't be found.
The problem is that in your project’s project.pbxproj file the old provisioning profile identifiers are still lingering. You need to clean up that file so that Xcode can build your project without errors.
Here’s how you do that:
1. Close Xcode
2. Right click on your project’s .xcodeproj bundle to show it’s contents.
3. Open the .pbxproj file in a text editor of your choice (make a backup copy first if you feel paranoid)
4. Find all lines in that file that include the word PROVISIONING_PROFILE and delete them.
5. Open Xcode and clean your project
6. Build your project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment