I get certificates and provisioning profile but when i want to select provisioning profile for xcode (Target->Info->Build->code signing)provisioning profile exist but disable for select and when select
"iPhone Developer" in the section "Automatic Profile Selector" of the pop-up menu, says no profile currently match
why?
Make sure the iOS version on your phone matches the SDK version on your mac.
Go to the provisioning portal on the apple website and follow the steps, it's quite clear
You need to get a certificate request from your mac by going to key chain access and selecting request certificate, select save to desktop rather than mail
Go to the authentication certificate section of the portal and upload the file you just made
Create an App ID
Add your phone's UDID to the device list (UDID can be found in the organise window of xcode)
Create a new provisioning profile using the certificate, App ID and device UDID
Download the profile and drag it into the organise window of xcode under provisions
Check again that you have the correct versions of everything (iOS and SDK)
download the pdf file from the apple's iphone portal and do what it said step by step. if others did it so you should get the public/private key pair from your team mates. instructions for importing and exporting them is available in apple's website.
at the end you should revoke the developer certificate and recreate it. then don't create appID and other stuff by hand. click launch tutorial at the first page of your iphone portal's first page.
take a look at stackoverflow too. there are some good answers there.