Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Remove Capability API

Discussion in 'iOS and tvOS' started by Devil_Inside, Jan 15, 2019.

  1. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,117
    So there is API for adding capabilities in post build processor but there is no API for removing capabilities.
    Starting with 2018.2, Unity for some weird reason started automatically enabling Push Notification capability in XCode project as soon as you touch the NotificationServices api in your Unity project.

    I'm not using push notifications, just local notifications, and since upgrading to 2018.3 I'm unable to build the project using Cloud Build, since the automatically added Push Capability requires Push Capability to be enabled in the provisioning profile.

    I don't have access to the provisioning profile, so I can't change it. Neither can I change the XCode project manually, since I don't have a Mac and I'm using Cloud Build for all my builds.
    My only option seems to somehow manually disable Push Notifications in the generated XCode project, however it's impossible to find any information on how to do that.

    Has anyone ever disabled capabilities using PBXProject in Unity?
     
  2. NilInnovamat

    NilInnovamat

    Joined:
    Apr 22, 2022
    Posts:
    1
    Any updates on this? having the same issue
     
    Seromu likes this.