Creating ad hoc for iphone distribution in XCode 4
You can edit scheme and assign different configuration for different actions. Adhoc configuration for archiving for example.
Click 'Scheme' button and select 'Edit scheme'. You'll see 'Archive' item which allow you to change configuration for archiving application.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.