Open emiliopavia opened 1 year ago
Any update on this?
Looks like this code produce error Fatal error: self must be a properly aligned pointer for types Pointee and T
on line let value = start.withMemoryRebound(to: UInt32.self, capacity: 1) { $0 }
This PR may fix it :)
@Widcket may you take a look?
Hi @emiliopavia and @ObidosDev, thanks for raising this. However, I'm not the maintainer of this library –I'll defer to @ionutmanolache-okta.
Any update on this? This is kinda huge problem for now
Updates?)
By submitting a PR to this repository, you agree to the terms within the Auth0 Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
On iOS 16 we're receiving several exceptions from the
code(counter:)
function inOneTimePasswordGenerator
. The exception is related to the block called in thewithUnsafeBytes
function.This PR aims to replace the code without using unsafe pointers (as suggested by Apple in Swift support forums).
References
Testing
The code is already covered by tests.
Checklist