Adding devices to team provisioning profile

This worked for me:

  1. Login to your iPhone provisioning portal through https://developer.apple.com
  2. Add the UDID in devices
  3. Go back to Xcode, open up the Organizer and select "Provisioning Profiles", ensure that "Automatic Device Provisioning" is checked on the top right pane, then click on the "Refresh" button, and magically all your devices set in the provisioning portal will be automatically added.

right click on the device, then select 'add device to provisioning profile'