How to call SecItemCopyMatching in Xcode 7 beta 4?

后端 未结 2 1437
终归单人心
终归单人心 2021-02-09 09:14

In previous versions of Xcode 6 and 7 with Swift, this syntax would work:

    var secureItemValue: Unmanaged?

    let statusCode: OSStatus = Se         


        
2条回答
  •  暖寄归人
    2021-02-09 10:11

    According to this answer you can just remove Unmanaged<> around AnyObject:

    var secureItemValue: AnyObject?
    
    let statusCode: OSStatus = SecItemCopyMatching(keychainItemQuery, &secureItemValue)
    

提交回复
热议问题