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

Adding Apple Sign-In Capability works wrong

Discussion in 'iOS and tvOS' started by MTeplytskyi, Mar 19, 2021.

  1. MTeplytskyi

    MTeplytskyi

    Joined:
    Jun 16, 2020
    Posts:
    25
    Hi!
    When calling AddSignInWithApple method in capability manager it adds AuthenticationServices.framework both to Unity-iPhone and UnityFramework targets as required.

    I think this method shouldn't add framework at all or at least add it only to UnityFramework target.
    Unity version 2019.4
     
  2. lupidan

    lupidan

    Joined:
    Jan 14, 2014
    Posts:
    47
    The current ProjectCapabilitiesManager is broken after Unity splitted the UnityFramework target.

    The entitlements need to be added to the Main App target
    The framework has to be added to the UnityFramework (if the code that uses the Framework is there)

    More details:
    https://forum.unity.com/threads/projectcapabilitymanager-addinapppurchase-not-working.940893/#post-6387195

    I made an extension method that should add the entitlements & frameworks correctly. You can give it a go:
    https://github.com/lupidan/apple-si...h/Editor/ProjectCapabilityManagerExtension.cs
     
  3. MTeplytskyi

    MTeplytskyi

    Joined:
    Jun 16, 2020
    Posts:
    25
    Thanks a lot!