Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser crash #24

Open
matthart-com opened this issue Dec 16, 2022 · 0 comments
Open

Parser crash #24

matthart-com opened this issue Dec 16, 2022 · 0 comments

Comments

@matthart-com
Copy link

Instantiating defaultParser on real device crashes. The fix I did is the following, plus instantiating via setDefaultParser(with: Configuration)

private static var _defaultParser: Parser?
    public static var defaultParser: Parser {
      get {
        if _defaultParser == nil {
          _defaultParser = Parser(with: Configuration.configuration(fromJSONResource: ConfigurationType.v3)!)
        }
        return _defaultParser!
      }
      set {
        _defaultParser = newValue
      }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant