granoff/Strongbox

Deprecated in iOS 12.0

Closed this issue · 2 comments

in Strongbox.swift

Line 73
let archiver = NSKeyedArchiver(forWritingWith: data)
'init(forWritingWith:)' was deprecated in iOS 12.0: Use -initRequiringSecureCoding: instead

and Line 95:
let unarchiver = NSKeyedUnarchiver(forReadingWith: data as Data)
'init(forReadingWith:)' was deprecated in iOS 12.0: Use -initForReadingFromData:error: instead

Fixed in v0.5.2

This issue still exists.

let unarchiver = NSKeyedUnarchiver(forReadingWith: data as Data)