-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Expo SDK49 upgrade errors #12
Comments
Having the same error without expo. |
Update: I tried replacing by |
I was experiencing this. Seems it was a conflict with the headers of the native sqlite version on IOS You should be able to solve it using this part of the docs I just added the env var to my {
"production": {
"distribution": "store",
"env": {
"STAGE": "production",
"FLIPPER_DISABLE": "1",
"QUICK_SQLITE_USE_PHONE_VERSION": "1"
},
"channel": "production"
}
} |
Beware that while this is a feasible solution for some use cases, it will result in inconsistent SQLite versions across iOS and Android. It's the same problem that I had with with |
I'm having the same kind of errors :
|
I chime in also face this issue with Expo SDK 49 that I would need with MacOS Sonoma |
If I check the header files for the embedded sqlite version for iOS, I see that there is the following
But in this lib there is the following one:
So I created the following patch to use with patch-package: react-native-quick-sqlite+8.0.5.patch And the app now builds on my side. I'm unsure if this is dangerous or not! |
This will solve duplicated versions of SQLite but it will also cause the OS SQLite version to be used, resulting in inconsistent SQLite versions across iOS and Android. To be even more precise here, it will use the “first version found” which could be either the OS one or the one embedded in this package, as it depends on the order of compilation |
@derekstavis got it. I was printing SQLite version and it printed the one embedded in the lib, but I see what you mean and that could def be dangerous. |
I think Expo started embedding their expo-sqlite library by default on their GO version. So it looks like they are importing the OS embedded version. At least that was what I saw went testing the recent versions of Expo. Nothing wrong with this library, in any case, they need to only import the library when expo-sqlite is used. |
After upgrading to SDK49 I started getting the following error when using
expo run:ios
:This is an excerpt of the full error, as this block repeats for the various SQLite structs. Reverting to SDK48 solves the problem.
The text was updated successfully, but these errors were encountered: