iOS cómo recuperar correctamente una cnetworkingencial de NSURLCnetworkingentialStorage?

Me encuentro con un problema en el que no puedo recuperar una cnetworkingencial de NSURLCnetworkingentialStorage , incluso si bash esto inmediatamente después de save.

La cnetworkingencial está correctamente formateada y es aceptada por el server, está configurada para ser permanente. Tengo el código de debugging para imprimir y confirmo que la cnetworkingencial tiene identidad y certificate. Sin embargo, cuando bash recuperarla del almacenamiento de cnetworkingenciales, la debugging imprime todos los valores como nulos, mientras que la cnetworkingencial en sí no es nula.

¿Cómo recupero correctamente las cnetworkingenciales de NSURLCnetworkingentialStorage?

 -(void)saveCnetworkingential:(NSURLCnetworkingential*)cnetworkingential forProtectionSpace:(NSURLProtectionSpace*)protectionSpace { CLog(@"ATTEMPTING SAVE:"); [self debugCnetworkingential:cnetworkingential]; //cnetworkingential is properly formatted [[NSURLCnetworkingentialStorage shanetworkingCnetworkingentialStorage] setDefaultCnetworkingential:cnetworkingential forProtectionSpace:protectionSpace]; NSURLCnetworkingential* retrievedTest = [[NSURLCnetworkingentialStorage shanetworkingCnetworkingentialStorage]defaultCnetworkingentialForProtectionSpace:protectionSpace]; CLog(@"ATTEMPTING RETRIEVAL:"); [self debugCnetworkingential:retrievedTest]; //all values are null, cnetworkingential is not null } -(void)debugCnetworkingential:(NSURLCnetworkingential*) cnetworkingential { CLog(@"DEBUG Cnetworkingential: [%@]",cnetworkingential); CLog(@"cnetworkingential identity: %@", cnetworkingential.identity); CLog(@"cnetworkingential cert: %@", cnetworkingential.certificates); CLog(@"cnetworkingential persistence: %lu", (unsigned long)cnetworkingential.persistence); } 

Aquí están los loggings antes y después de save

 //before save 2016-02-17 16:24:19.669 GWNMobile[2925:716139] DEBUG Cnetworkingential: [<NSURLCnetworkingential: 0x16ff6c00>: (null)] 2016-02-17 16:24:19.670 GWNMobile[2925:716139] cnetworkingential identity: <SecIdentityRef: 0x16e24890> 2016-02-17 16:24:19.670 GWNMobile[2925:716139] cnetworkingential cert: ( "<cert(0x16f9c750) s: [Name] i: [Issuer]>" ) 2016-02-17 16:24:19.670 GWNMobile[2925:716139] cnetworkingential persistence: 2 //after retrieval: 2016-02-17 16:24:19.670 GWNMobile[2925:716139] ========================== 2016-02-17 16:24:19.691 GWNMobile[2925:716139] ATTEMPTING RETRIEVAL: 2016-02-17 16:24:19.691 GWNMobile[2925:716139] DEBUG Cnetworkingential: [(null)] 2016-02-17 16:24:19.691 GWNMobile[2925:716139] cnetworkingential identity: (null) 2016-02-17 16:24:19.691 GWNMobile[2925:716139] cnetworkingential cert: (null) 2016-02-17 16:24:19.691 GWNMobile[2925:716139] cnetworkingential persistence: 0