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

Bug AddiCloud bug?

Discussion in 'iOS and tvOS' started by AcidArrow, Jan 15, 2021.

  1. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,004
    Maybe XCode (12.3) changed something, but recently it seems like this code:

    Code (csharp):
    1. ProjectCapabilityManager projCapability = new ProjectCapabilityManager(projPath, "Entitlement.entitlements", targetGuid: pBXProject.GetUnityMainTargetGuid());
    2. projCapability.AddiCloud(true, false, false, false, null);
    3. projCapability.WriteToFile();
    Results in

    Screenshot 2021-01-15 at 8.55.05 PM.png

    I don't think empty iCloud Container Identifiers should be added.

    Using Unity 2020.2.1f1
     
    distriqt likes this.
  2. chamele0n

    chamele0n

    Joined:
    Jan 19, 2016
    Posts:
    2
    unity 2020 have bug in ProjectCapabilityManager AddiCloud method,ContainerIdValue need replace with ContainerIdKey
    Code (CSharp):
    1. PlistElementArray plistElementArray1 = (entitlementDoc.root[ICloudEntitlements.ContainerIdValue] = (PlistElement) new PlistElementArray()) as PlistElementArray;
     
  3. rahulnaik9010

    rahulnaik9010

    Joined:
    Jan 2, 2019
    Posts:
    19
    Hi, How to add iCloud save feature to iOS game....I am having a tough time saving my game progress to iCloud. Are There any tutorials or links to this ?
     
  4. andrew_froggy

    andrew_froggy

    Joined:
    Nov 9, 2022
    Posts:
    1
  5. BevvyofFun

    BevvyofFun

    Joined:
    Aug 19, 2020
    Posts:
    25