keychain-swift icon indicating copy to clipboard operation
keychain-swift copied to clipboard

crashing on keyWithPrefix() func

Open AndreaMiotto opened this issue 6 years ago • 3 comments

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:

Schermata 2019-05-27 alle 21 59 23

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 avatar May 27 '19 20:05 AndreaMiotto

@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 avatar May 28 '19 02:05 evgenyneu

@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

AndreaMiotto avatar May 29 '19 12:05 AndreaMiotto

It's all good. I'm glad you found a solution! 👍

evgenyneu avatar May 29 '19 20:05 evgenyneu