iPhone SDK Provisioning Walkthrough


By far the most helpful single resource I found during the long and difficult course of properly signing my code and getting it running on my iPhone is locaded at 24100.net. And the title of the post is very helpful, because those two errors, 0xE800003A and 0xE8000001, are the curse of provisioning on iPhone development.

To sum up my own experience with XCode signing, I learned a few things which have really improved my development experience.

  • I delete provisioning profiles out of XCode as soon as I’m done with them. I will head to ~/Library/MobileDevice/Provisioning Profiles and delete everything in there, and then close XCode.
  • Drag the one .mobileprovision file you want to work with to your XCode icon in the dock, XCode loads it, renames it and puts it back in the above directory, and then I close XCode again. I know, it seems crazy, but XCode gets confused easily, and I’ve found restarting XCode helps.
  • If I’m building for AppStore or Ad Hoc, I literally just load the one provision, clean the entire build (with both checkboxes checked), build it, and then delete the provision profile out of the XCode directory.
  • I spend most of my time with my single development profile sitting in the directory. Even still, XCode spits errors at me sometimes, and a clean build + XCode restart fixes it. I’ve even had to restart my iPhone once when it was still giving me errors after the above steps.
  1. #1 by Ralf on March 24th, 2009

    Thanks for linking back to me. Glad that the article did help!

  2. #2 by Zoran on April 28th, 2009

    I have already seen it somethere…
    Thanks
    Zoran

  3. #3 by Mel on May 4th, 2009

    “~/Library/MobileDevice/Provisioning Profiles”

    Where I can find this path? is this located in HD?

    Thanks

    • #4 by Eric on May 4th, 2009

      Yes, it’s in your HD, the ~ thing stands for your home directory.

      • #5 by Mel on May 5th, 2009

        Thanks Eric, but I cannot find the MobileDevice folder. Is it possible that folder was hidden? If it is hidden, is there way to unhide it?

        Thanks in advance.

        • #6 by Peter on July 11th, 2009

          yeah…i couldnt find the MobileDevice folder either…any suggestions?

          Thanks.

        • #7 by Eric on July 12th, 2009

          Sorry, but I really don’t know where to look besides the location I listed.

(will not be published)