Skip to content

Install on macOS failing with error: unexpected unqualified-id #83

@aguynamedben

Description

@aguynamedben

Hi, thank you for publishing this package. 🙏

We recently started seeing an issue while building the node bindings for sqlcipher with the error message error: unexpected unqualified-id. We use a very similar setup internally to @journeyapps/sqlcipher, and 2 of our developers (myself included) just started seeing this (1 yesterday, 1 today). We think it's due to a macOS or XCode update, but we haven't been able to figure it out. It's preventing us from making new builds of our app. We're running the same commands on the same code that worked 2 days ago, but the rebuild steps are failing now.

It's also affecting @journeyapps/sqlcipher 4.1.0 (pre N-API) and 5.2.0 (w/ N-API) on my machine in our app which uses Electron 11.0.4.

We've tried manually compiling and linking to SQLCipher from within binding.gyp, and using this module, but it seems there's some core change with macOS or XCode (header files, dependencies, etc.) that's preventing the building of SQLCipher + node-sqlite3 + Electron.

Below is a screenshot of the error when I tried @journeyapps/sqlcipher 4.2.0 and Electron 11.0.4. We have a lot of experience building SQLCipher with node-sqlite3, and every method we know to try ends up with this error.

Please let us know if you start seeing this error or have any ideas of the root causes, workarounds, or fixes. 🙏 Thanks again!

Electron version: 11.0.4
@journeyapps/sqlcipher version: 4.1.0 or 5.2.0
macOS version: 11.3
Xcode version: Version 12.5 (12E262) - for potential dependencies/headers/gcc/etc.

image

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