isvc4

Dopo aver effettuato l’upgrade a Xcode8 e aver submittato un app tramite iTunes Connect, ho ricevuto questo errore riguardante le notifiche Push:

Missing Push Notification Entitlement – Your app includes an API for Apple’s Push Notification service, but the aps-environment entitlement is missing from the app’s signature. To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a distribution provisioning profile that includes the aps-environment entitlement. This will create the correct signature, and you can resubmit your app. See “Provisioning and Development” in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API.

Risolverlo è semplice: basterà aprire Xcode e cliccare su “Capabilities”. Vedrete che l’opzione “Push Notifications” sarà su OFF, perché è questa l’impostazione di default in Xcode8. Basterà dunque modificarla in “ON” e procedere di nuovo con l’archivio e l’upload dell’app in questione.

Attenzione: la tab “Capabilities” è visibile una volta selezionato il Target dell’app.