I am trying to test the push notification functionality on a device. I followed this article. <http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1>

So the issue is when I download the development provisioning profile and import it into xcode then it says the valid code signing identity is not found.

![organiser says: code signing identity is not found](https://i.stack.imgur.com/Az31V.jpg)
This stops me from building the app as General projects settings says no matching provisioning profiles found.

![General projects settings says no matching provisioning profiles found](https://i.stack.imgur.com/C1wsb.jpg)

No matter how many times I push fix button this wont go.

The app ID and provisioning profiles looks good on iOS Dev center.

![App ID settings](https://i.stack.imgur.com/S9CPg.jpg)
![Development Provisioning profile settings](https://i.stack.imgur.com/ebHAM.jpg)

I have tried deleting them and recreating them again and again but issue remains the same.

Also my build settings are:
![App Build settings](https://i.stack.imgur.com/acGey.jpg)

There is only one option for code signing identity and that is "iPhone Developer" as no other matching code signing identity is found. I have tried deleting the app and recreating it in xcode also. I have double checked the bundle ID. And I have google a lot. Everyone says revoking the certificate and recreating fixed the issue but not in my case.

Also the keychain seems to have the correct public and private key.
![Keychain access](https://i.stack.imgur.com/TOVOP.jpg)

I am stuck on it for last 2 days :(