trying to build an ad hoc distribution with Xcode 4.
Consider that my project.xcodeproj was created with a very old version of Xcode.
Now Looking around at Build Setting I cannot find Code Signing Identity Ad Hoc as shown into attached image:

Any help appreciated
@freedev I just wrote a blog post detailing the ad hoc process in Xcode 4 that should help you.