no valid 'aps-environment' entitlement string found for application when trying to enable push notifications

吃可爱长大的小学妹 提交于 2019-12-04 13:43:30

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.

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.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!