Example #1
0
        //Keychain Sharing
        void ApplyKeychainSharingCapability(KeychainSharingCapability capability)
        {
            //update pbxproject
            _pbxproj.EnableSystemCapability("com.apple.Keychain", true);
            //update entitlements file
            var entitlementChanges = new PListDictionary();
            var groups             = new PListArray();

            entitlementChanges.Add("keychain-access-groups", groups);

            foreach (var item in capability.KeychainGroups)
            {
                groups.Add("$(AppIdentifierPrefix)" + item);
            }

            ApplyEntitlementsChanges(entitlementChanges, true);
        }
Example #2
0
 public KeychainSharingCapability(KeychainSharingCapability other)
     : base(other)
 {
     KeychainGroups = new List <string>(other.KeychainGroups);
 }