keychain-swift
keychain-swift copied to clipboard
crashing on keyWithPrefix() func
Hi, i'm using the 13.0 version and I'm keep crashing whenthe pod runs into this method:
/// Returns the key with currently set prefix.
func keyWithPrefix(_ key: String) -> String {
return "\(keyPrefix)\(key)"
}
Here the stack trace and the console:
I'm having this issue only in the vendored framework version of my library. (meaning a framework).
If I run the exactly same code in the not vendored version (normal pod) the code works fine.
@AndreaMiotto thanks for reporting the issue. Is it possible for you to isolate the problem in a simple app and attach here, so I can debug it?
@evgenyneu unfortunately I can't make an example project, because I use different libraries like alamofire, realm and everything is wrapped inside a vendored complied framework. Make an example project is very time expensive.
I switched to kishikawakatsumi/KeychainAccess keeping the same code and it does not crash on compiled framework
It's all good. I'm glad you found a solution! 👍