ios - SecAccessControl has no member takeRetainedValue -


i'm followig link https://www.cigital.com/blog/integrating-touch-id-into-ios-applications/

let sacref = secaccesscontrolcreatewithflags(kcfallocatordefault,         ksecattraccessiblewhenpasscodesetthisdeviceonly,         .userpresence,         &error);  let data: nsdata = "sup3r_s3cur3_k3y".datausingencoding(nsutf8stringencoding, allowlossyconversion: false)!;      var attributes: nsmutabledictionary = nsmutabledictionary(         objects: [  ksecclassgenericpassword,                     service,                     data,                     kcfbooleantrue,                     sacref.takeretainedvalue()         ],         forkeys: [  ksecclass,                     ksecattrservice,                     ksecvaluedata,                     ksecusenoauthenticationui,                     ksecattraccesscontrol]);  var status: osstatus = secitemadd(attributes cfdictionaryref, nil); 

on line sacref.takeretainedvalue()i value of type 'secaccesscontrol' has no member 'takeretainedvalue'

how should save touchid protected data keychain?

just remove it. frameworks no longer need since swift 2.3+.

i tried upgrade 1 of swift 2.0 app swift 2.3. reported same issue. removed it. compiled , worked charm.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -