iPhone App Signing
One of the sad truths about Apple is that it's about as bad at providing good developer tools as it is good at providing a great user experience. Many Mac-zealots will immediately extoll the virtues of XCode at this point, whereupon anyone with a smattering of experience of Microsoft or Java development tools (or RealBasic) will laugh at them.
Code Completion
XCode's code completion is literally two generations behind the state of the art. For example, when I start typing an object name in XCode it will (a) only show one possible match as I type, (b) it will often show a totally illegal option, and (c) tabbing through parameters appears to break once I start changing one (even TextMate manages better than this). Contrast this to Eclipse which (a) shows a list of possible matches, (b) creates that intelligently, showing only things that make sense in context, and (c) not only lets me tab through parameters but shows my context-sensitive documentation. RealBasic and Visual Studio offer similar levels of smarts, but I highlight Eclipse because it's free.The App Signing Nightmare
iPhone development is actually very pleasant -- as pleasant as anything else involving XCode -- until you get to anything involving App signing. To begin with, unless you're writing an OpenGL game, the iPhone simulator is just awesome, so the write, compile, test, debug cycle is wonderful. But as soon as you actually try to run your app on an actual iPhone, everything goes pear-shaped.I think it's probably fair to state that most iPhone developers have flushed at least one day of their lives down the toilet trying to get this to work. Worst of all, at the end of it I, for one, have no freaking idea why whatever it is that I did worked, so the prospect of having to go through all of it again is very high. If you google error messages like "a valid provisioning profile is required" or "applicationverificationfailed" or "signing identity matching this profile could not be found in your keychain" and you'll discover that not only have huge numbers of iPhone developers run into these problems, but they have run into them repeatedly, and don't really understand what's going on or what they're doing wrong or why whatever it is they finally did to make the problem go away worked.
How could Apple have screwed this up so royally? A lot of folks are willing to cut Apple slack for making changes to deal with hackers or jailbreakers or what have you, but as far as I can tell this is all irrelevant. The basic idea of iPhone security is that certain bits of an iPhone app have to be encrypted using certain encryption keys. Apple gives you a public key with which to encrypt your identity (as a developer) and public and private keys with which to deploy your apps. It seems fairly clear that the various "certificates" and public and private keys Apple has you generate serve the role of "signature" (yes, I wrote this), "authentication" (yes, it's OK to run stuff signed by me), "receipt" (yes, you are allowed to run this program), special envelope for sending stuff to Apple (here are my details so you know whom to blame), and so on. It's not like giving these things sensible names would compromise the security of the system. Is it?
There are two kinds of provisioning profile (something that is NOT obvious at first) and the one that's missing may not be the kind you provided. Thanks, there's an hour I'll never get back again.
Here's a description of the complete process that's a good deal more intelligible than any of Apple's documentation.