SecCopyErrorMessageString gives “Use of unresolved identifier” in swift

前端 未结 3 338
遇见更好的自我
遇见更好的自我 2021-01-13 12:32

Trying to use SecCopyErrorMessageString to interpret errorCode. in swift :

    var result: OSStatus
    result = SecItemAdd(query as CFDictionary, nil);


          


        
3条回答
  •  有刺的猬
    2021-01-13 12:38

    The SecCopyErrorMessageString function only became available on iOS in version 11.3. Prior to that, it could only be used on OS X.

提交回复
热议问题