3

I've been reading all the other questions asking about this error and it seems like I've followed their solutions but I'm still having this problem. I removed all the existing provisioning profiles and app ids. I created a new app id that has push enabled. I created a development provisioning profile with push enabled. On the Apple dev site, that provisioning profile has a green "active" indicator next to it. In xcode5, under preferences>accounts, the provisioning profile is listed. Under window>organizer, the provisioning profile appears under my device with the status "valid profile". But the error is still occurring. What am I missing here?

Edit: I want to make it clear that I created my provisioning profile AFTER creating the APNS certificate since that seems to be the most common solution to this.

John
  • 401
  • 6
  • 13

2 Answers2

8

Of course I figure out what's wrong right after typing a question - the bundle identifier in xcode did not match my appid, and I forgot to update the certificate I uploaded to urban airship after restarting the configuration process.

John
  • 401
  • 6
  • 13
  • 1
    In my case, my bundle identifier was fine, but my Team was blank. Setting this fixed the issue. – bsegraves Jul 21 '14 at 03:31
  • Had to upvote bsegraves, made me look at Team. I have a personal developer account and also belong to a client's team. Turns out I had the wrong account chosen. Thanks bsegraves! – Jonathan MacDonald Apr 22 '15 at 22:04
2

Looks like you fixed the issue, but I got this issue when I moved to a new machine. Turns out I forgot to bring some certificates from my old machine. I fixed it by importing certificates from old to new.

Steps are:

  1. Export certs on old machine as .p12.
  2. Copy them to new machine.
  3. Double click on file(s) to put them in Keychain Access on new machine.
  4. In Xcode on your new machine, go to Xcode > Preferences > Accounts, then refresh the provisioning profiles.
Matt Lally
  • 435
  • 1
  • 3
  • 13