Skip to content

Crash on iOS 14 When Initializing SiweMessage Instance #185

@osmanthustonx

Description

@osmanthustonx

Description

The SIWE (Sign-In with Ethereum) library encounters a crash immediately upon initialization when running on iOS 14. This seems to be related to a syntax error in parser.js.

Steps to Reproduce

  1. Initialize a SiweMessage instance on an iOS 14 device.
  2. Observe that the app crashes immediately after load.

Expected Behavior

The SiweMessage instance should load without causing the app to crash.

Actual Behavior

The app crashes and the following error is displayed in the console:
(Unhandled Promise Rejection: Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name)
(Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name)
(Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name)
(Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name)
(Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name)

Possible Solution

N/A

Additional Information

  • This issue occurs consistently on iOS 14.
  • No such issues have been observed on later versions of iOS or on other platforms.

Environment

  • Device: iphone 8 plus
  • OS: iOS 14
  • Browser: safari
  • SIWE Library Version: ^2.1.4

Screenshots

2023-11-16 2 33 49

Acknowledgements

I would like to express my gratitude to the development team for creating the SIWE library. Your work significantly contributes to the ecosystem, and I appreciate the effort put into making such tools available and maintained.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions