Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

XCode 11 (beta): capabilities not added

Discussion in 'iOS and tvOS' started by Numa, Sep 8, 2019.

  1. Numa

    Numa

    Joined:
    Oct 7, 2014
    Posts:
    100
    Hi,

    Since upgrading to XCode 11 (beta) I can't get the Push Notifications capability to get added through my usual postbuild script. A temporary solution is to add it manually before releasing but I was curious to see if anyone had the same issue?

    I tried both
    Code (CSharp):
    1. project.AddCapability(targetGUID, PBXCapabilityType.PushNotifications)
    and
    Code (CSharp):
    1. ProjectCapabilityManager.AddPushNotifications
    I have an entitlement file that seems to contain the correct aps-environment key but Appstore connect still complains unless I manually add the capability in XCode.

    Thanks
     
  2. PavelLU

    PavelLU

    Unity Technologies

    Joined:
    Feb 23, 2017
    Posts:
    106
    Hi, What unity version you are using?
     
  3. Numa

    Numa

    Joined:
    Oct 7, 2014
    Posts:
    100
    I'm using 2019.2.8f1
     
  4. leuconoe

    leuconoe

    Joined:
    Oct 14, 2014
    Posts:
    15
    @PavelLU Was this problem resolved?
    I had the same problem on 2018.4.14. / xcode 11.3.1
    And is it normal to delete the capabilities I configured every time I export the project?