“no valid aps-environment entitlement found for application”

前端 未结 10 2002
长情又很酷
长情又很酷 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条回答
  •  心在旅途
    2021-01-31 15:27

    In my case Xcode had invalidated the provisioning profile (it will say so in the Member Center).

    What worked was to refresh all the provisioning profiles in Xcode after enabling Push for the app in the Member Center.

    Here is Apples guide to refresh all the provisioning profiles on your computer. https://developer.apple.com/library/prerelease/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingProfiles/MaintainingProfiles.html#//apple_ref/doc/uid/TP40012582-CH30-SW26

    In short open Xcode and do the following:

    1. In the Xcode Preferences window, click Accounts.

    2. Select your team, and click View Details.

    3. In the dialog that appears, click the Refresh button in the lower-left corner under the Provisioning Profiles table.

      Xcode updates the list of profiles in the Provisioning Profiles table.

提交回复
热议问题