You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 12, 2026. It is now read-only.
Very strange, since one month or so I get a few crash reports via Xcode. It looks like in SecureDefaults.swift:81 it find nil.
However in SecureDefaults.swift:79 the app should already crash via assert(). I cannot reproduce this crash so I have no idea what is causing it...
Hm, now I see that there is another !, after the data() function. Maybe that is the one that is crashing? Could it have to do with some utf8 coding? Maybe in some countries the password could be non-utf8 compatible?
I don't think I can see from the crash report what the locale could be....
public var key: Data! {
get {
if _key == nil {
assert(password != nil, "Password can't be nil!") //line 79
_key = try? AES256.createKey(
password: password!.data(using: .utf8)!, //line 81
salt: AES256.randomSalt()
)
}
return _key
}
set {
_key = newValue
}
}
Very strange, since one month or so I get a few crash reports via Xcode. It looks like in SecureDefaults.swift:81 it find nil.
However in SecureDefaults.swift:79 the app should already crash via assert(). I cannot reproduce this crash so I have no idea what is causing it...
Hm, now I see that there is another
!, after the data() function. Maybe that is the one that is crashing? Could it have to do with some utf8 coding? Maybe in some countries the password could be non-utf8 compatible?I don't think I can see from the crash report what the locale could be....