When using an Ad Hoc certificate you need to provide Apple with a list of all devices that you want to use for testing. This list controls which devices your application can be installed onto. To add a device to the list view the Certificates, Identifiers & Profiles page in the Developer Program. Select All under the Devices section and press the plus icon.
You will be asked to enter the following information.
All iOS devices have a unique identifier number associated with it, known as a UDID (Unique Device ID). Your UDID is a 40 digit sequence of letters and numbers. To retrieve a UDID take the following steps.
The next step is to create a Distribution Provisioning Profile. To do this select Distribution listed under the Provisioning Profile section and then press the plus icon.
From the options listed select Ad Hoc and then press Continue.
The next page will present you with a list of App ID's. Look in the list for the App ID you want to use, select it and press Continue.
You will now need to select your previously created Distribution Certificate, then press Continue.
Now select which devices you want to use for testing and press Continue.
The last stage is to give your certificate a profile name.
Once your certificate has been created it will appear in the list of Provisioning Profiles. Select it and press the Download option.