Just spent a day trying to solve that.
For a developer with mostly .NET background Iphone development is.. very unenjoyable process, for me anyways.
Anyway, this post on SO really helped (though I had to repeat it couple times).
Now just need to fix “Bundle identifier differs from reserved bundle identifier” and “Application failed codesign verification” exception.. Apple is fun (not).