“no valid aps-environment entitlement found for application”

前端 未结 10 1980
长情又很酷
长情又很酷 2021-01-31 15:01

I am encountering this error when I am loading an Ad Hoc build of my Push Notification enabled iPhone app onto my device:

no valid aps-environment entitle

10条回答
  •  闹比i
    闹比i (楼主)
    2021-01-31 15:26

    I found the solution. In my project info under Build > Code Signing Identity I had it set to automatic, and it was selecting an AdHoc distribution profile which did not have push notifications enabled. (It was the wrong one.) I have selected the correct profile and the error is gone.

提交回复
热议问题