Open moritzlang opened 2 days ago
Tried to downgrade and used version ^8.2.6
and 8.1.0
of react-native-quick-sqlite
, but there the build fails with a different error:
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:723:8)
721 | */
722 | typedef struct sqlite3_file sqlite3_file;
> 723 | struct sqlite3_file {
| ^ redefinition of 'sqlite3_file'
724 | const struct sqlite3_io_methods *pMethods; /* Methods for an open file */
725 | };
726 |
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:822:8)
820 | */
821 | typedef struct sqlite3_io_methods sqlite3_io_methods;
> 822 | struct sqlite3_io_methods {
| ^ redefinition of 'sqlite3_io_methods'
823 | int iVersion;
824 | int (*xClose)(sqlite3_file*);
825 | int (*xRead)(sqlite3_file*, void*, int iAmt, sqlite3_int64 iOfst);
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:1427:8)
1425 | typedef struct sqlite3_vfs sqlite3_vfs;
1426 | typedef void (*sqlite3_syscall_ptr)(void);
> 1427 | struct sqlite3_vfs {
| ^ redefinition of 'sqlite3_vfs'
1428 | int iVersion; /* Structure version number (currently 3) */
1429 | int szOsFile; /* Size of subclassed sqlite3_file */
1430 | int mxPathname; /* Maximum file pathname length */
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:1724:8)
1722 | */
1723 | typedef struct sqlite3_mem_methods sqlite3_mem_methods;
> 1724 | struct sqlite3_mem_methods {
| ^ redefinition of 'sqlite3_mem_methods'
1725 | void *(*xMalloc)(int); /* Memory allocation function */
1726 | void (*xFree)(void*); /* Free a prior allocation */
1727 | void *(*xRealloc)(void*,int); /* Resize an allocation */
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:3801:18)
3799 | ** invoked prior to calling sqlite3_free_filename(Y).
3800 | */
> 3801 | SQLITE_API char *sqlite3_create_filename(
| ^ conflicting types for 'sqlite3_create_filename'
3802 | const char *zDatabase,
3803 | const char *zJournal,
3804 | const char *zWal,
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:3808:17)
3806 | const char **azParam
3807 | );
> 3808 | SQLITE_API void sqlite3_free_filename(char*);
| ^ conflicting types for 'sqlite3_free_filename'
3809 |
3810 | /*
3811 | ** CAPI3REF: Error Codes And Messages
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:6981:8)
6979 | ** any database connection.
6980 | */
> 6981 | struct sqlite3_module {
| ^ redefinition of 'sqlite3_module'
6982 | int iVersion;
6983 | int (*xCreate)(sqlite3*, void *pAux,
6984 | int argc, const char *const*argv,
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7121:8)
7119 | ** 3009000.
7120 | */
> 7121 | struct sqlite3_index_info {
| ^ redefinition of 'sqlite3_index_info'
7122 | /* Inputs */
7123 | int nConstraint; /* Number of entries in aConstraint */
7124 | struct sqlite3_index_constraint {
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7124:10)
7122 | /* Inputs */
7123 | int nConstraint; /* Number of entries in aConstraint */
> 7124 | struct sqlite3_index_constraint {
| ^ redefinition of 'sqlite3_index_constraint'
7125 | int iColumn; /* Column constrained. -1 for ROWID */
7126 | unsigned char op; /* Constraint operator */
7127 | unsigned char usable; /* True if this constraint is usable */
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7131:10)
7129 | } *aConstraint; /* Table of WHERE clause constraints */
7130 | int nOrderBy; /* Number of terms in the ORDER BY clause */
> 7131 | struct sqlite3_index_orderby {
| ^ redefinition of 'sqlite3_index_orderby'
7132 | int iColumn; /* Column number */
7133 | unsigned char desc; /* True for DESC. False for ASC. */
7134 | } *aOrderBy; /* The ORDER BY clause */
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7136:10)
7134 | } *aOrderBy; /* The ORDER BY clause */
7135 | /* Outputs */
> 7136 | struct sqlite3_index_constraint_usage {
| ^ redefinition of 'sqlite3_index_constraint_usage'
7137 | int argvIndex; /* if >0, constraint is part of argv to xFilter */
7138 | unsigned char omit; /* Do not code a test for this constraint */
7139 | } *aConstraintUsage;
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7299:8)
7297 | ** freed by sqlite3_free() and the zErrMsg field will be zeroed.
7298 | */
> 7299 | struct sqlite3_vtab {
| ^ redefinition of 'sqlite3_vtab'
7300 | const sqlite3_module *pModule; /* The module for this virtual table */
7301 | int nRef; /* Number of open cursors */
7302 | char *zErrMsg; /* Error message from sqlite3_mprintf() */
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7323:8)
7321 | ** are common to all implementations.
7322 | */
> 7323 | struct sqlite3_vtab_cursor {
| ^ redefinition of 'sqlite3_vtab_cursor'
7324 | sqlite3_vtab *pVtab; /* Virtual table of this cursor */
7325 | /* Virtual table implementations will typically add additional fields */
7326 | };
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7828:8)
7826 | */
7827 | typedef struct sqlite3_mutex_methods sqlite3_mutex_methods;
> 7828 | struct sqlite3_mutex_methods {
| ^ redefinition of 'sqlite3_mutex_methods'
7829 | int (*xMutexInit)(void);
7830 | int (*xMutexEnd)(void);
7831 | sqlite3_mutex *(*xMutexAlloc)(int);
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:8597:8)
8595 | */
8596 | typedef struct sqlite3_pcache_page sqlite3_pcache_page;
> 8597 | struct sqlite3_pcache_page {
| ^ redefinition of 'sqlite3_pcache_page'
8598 | void *pBuf; /* The content of the page */
8599 | void *pExtra; /* Extra information associated with the page */
8600 | };
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:8762:8)
8760 | */
8761 | typedef struct sqlite3_pcache_methods2 sqlite3_pcache_methods2;
> 8762 | struct sqlite3_pcache_methods2 {
| ^ redefinition of 'sqlite3_pcache_methods2'
8763 | int iVersion;
8764 | void *pArg;
8765 | int (*xInit)(void*);
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:8785:8)
8783 | */
8784 | typedef struct sqlite3_pcache_methods sqlite3_pcache_methods;
> 8785 | struct sqlite3_pcache_methods {
| ^ redefinition of 'sqlite3_pcache_methods'
8786 | void *pArg;
8787 | int (*xInit)(void*);
8788 | void (*xShutdown)(void*);
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:10109:16)
10107 | ** the most recent version.
10108 | */
> 10109 | typedef struct sqlite3_snapshot {
| ^ redefinition of 'sqlite3_snapshot'
10110 | unsigned char hidden[48];
10111 | } sqlite3_snapshot;
10112 |
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:10111:3)
10109 | typedef struct sqlite3_snapshot {
10110 | unsigned char hidden[48];
> 10111 | } sqlite3_snapshot;
| ^ typedef redefinition with different types ' vs 'struct sqlite3_snapshot')
10112 |
10113 | /*
10114 | ** CAPI3REF: Record A Database Snapshot
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:723:8)
721 | */
722 | typedef struct sqlite3_file sqlite3_file;
> 723 | struct sqlite3_file {
| ^ redefinition of 'sqlite3_file'
724 | const struct sqlite3_io_methods *pMethods; /* Methods for an open file */
725 | };
726 |
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:822:8)
820 | */
821 | typedef struct sqlite3_io_methods sqlite3_io_methods;
> 822 | struct sqlite3_io_methods {
| ^ redefinition of 'sqlite3_io_methods'
823 | int iVersion;
824 | int (*xClose)(sqlite3_file*);
825 | int (*xRead)(sqlite3_file*, void*, int iAmt, sqlite3_int64 iOfst);
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:1427:8)
1425 | typedef struct sqlite3_vfs sqlite3_vfs;
1426 | typedef void (*sqlite3_syscall_ptr)(void);
> 1427 | struct sqlite3_vfs {
| ^ redefinition of 'sqlite3_vfs'
1428 | int iVersion; /* Structure version number (currently 3) */
1429 | int szOsFile; /* Size of subclassed sqlite3_file */
1430 | int mxPathname; /* Maximum file pathname length */
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:1724:8)
1722 | */
1723 | typedef struct sqlite3_mem_methods sqlite3_mem_methods;
> 1724 | struct sqlite3_mem_methods {
| ^ redefinition of 'sqlite3_mem_methods'
1725 | void *(*xMalloc)(int); /* Memory allocation function */
1726 | void (*xFree)(void*); /* Free a prior allocation */
1727 | void *(*xRealloc)(void*,int); /* Resize an allocation */
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:3801:18)
3799 | ** invoked prior to calling sqlite3_free_filename(Y).
3800 | */
> 3801 | SQLITE_API char *sqlite3_create_filename(
| ^ conflicting types for 'sqlite3_create_filename'
3802 | const char *zDatabase,
3803 | const char *zJournal,
3804 | const char *zWal,
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:3808:17)
3806 | const char **azParam
3807 | );
> 3808 | SQLITE_API void sqlite3_free_filename(char*);
| ^ conflicting types for 'sqlite3_free_filename'
3809 |
3810 | /*
3811 | ** CAPI3REF: Error Codes And Messages
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:6981:8)
6979 | ** any database connection.
6980 | */
> 6981 | struct sqlite3_module {
| ^ redefinition of 'sqlite3_module'
6982 | int iVersion;
6983 | int (*xCreate)(sqlite3*, void *pAux,
6984 | int argc, const char *const*argv,
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7121:8)
7119 | ** 3009000.
7120 | */
> 7121 | struct sqlite3_index_info {
| ^ redefinition of 'sqlite3_index_info'
7122 | /* Inputs */
7123 | int nConstraint; /* Number of entries in aConstraint */
7124 | struct sqlite3_index_constraint {
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7124:10)
7122 | /* Inputs */
7123 | int nConstraint; /* Number of entries in aConstraint */
> 7124 | struct sqlite3_index_constraint {
| ^ redefinition of 'sqlite3_index_constraint'
7125 | int iColumn; /* Column constrained. -1 for ROWID */
7126 | unsigned char op; /* Constraint operator */
7127 | unsigned char usable; /* True if this constraint is usable */
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7131:10)
7129 | } *aConstraint; /* Table of WHERE clause constraints */
7130 | int nOrderBy; /* Number of terms in the ORDER BY clause */
> 7131 | struct sqlite3_index_orderby {
| ^ redefinition of 'sqlite3_index_orderby'
7132 | int iColumn; /* Column number */
7133 | unsigned char desc; /* True for DESC. False for ASC. */
7134 | } *aOrderBy; /* The ORDER BY clause */
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7136:10)
7134 | } *aOrderBy; /* The ORDER BY clause */
7135 | /* Outputs */
> 7136 | struct sqlite3_index_constraint_usage {
| ^ redefinition of 'sqlite3_index_constraint_usage'
7137 | int argvIndex; /* if >0, constraint is part of argv to xFilter */
7138 | unsigned char omit; /* Do not code a test for this constraint */
7139 | } *aConstraintUsage;
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7299:8)
7297 | ** freed by sqlite3_free() and the zErrMsg field will be zeroed.
7298 | */
> 7299 | struct sqlite3_vtab {
| ^ redefinition of 'sqlite3_vtab'
7300 | const sqlite3_module *pModule; /* The module for this virtual table */
7301 | int nRef; /* Number of open cursors */
7302 | char *zErrMsg; /* Error message from sqlite3_mprintf() */
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7323:8)
7321 | ** are common to all implementations.
7322 | */
> 7323 | struct sqlite3_vtab_cursor {
| ^ redefinition of 'sqlite3_vtab_cursor'
7324 | sqlite3_vtab *pVtab; /* Virtual table of this cursor */
7325 | /* Virtual table implementations will typically add additional fields */
7326 | };
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:7828:8)
7826 | */
7827 | typedef struct sqlite3_mutex_methods sqlite3_mutex_methods;
> 7828 | struct sqlite3_mutex_methods {
| ^ redefinition of 'sqlite3_mutex_methods'
7829 | int (*xMutexInit)(void);
7830 | int (*xMutexEnd)(void);
7831 | sqlite3_mutex *(*xMutexAlloc)(int);
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:8597:8)
8595 | */
8596 | typedef struct sqlite3_pcache_page sqlite3_pcache_page;
> 8597 | struct sqlite3_pcache_page {
| ^ redefinition of 'sqlite3_pcache_page'
8598 | void *pBuf; /* The content of the page */
8599 | void *pExtra; /* Extra information associated with the page */
8600 | };
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:8762:8)
8760 | */
8761 | typedef struct sqlite3_pcache_methods2 sqlite3_pcache_methods2;
> 8762 | struct sqlite3_pcache_methods2 {
| ^ redefinition of 'sqlite3_pcache_methods2'
8763 | int iVersion;
8764 | void *pArg;
8765 | int (*xInit)(void*);
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:8785:8)
8783 | */
8784 | typedef struct sqlite3_pcache_methods sqlite3_pcache_methods;
> 8785 | struct sqlite3_pcache_methods {
| ^ redefinition of 'sqlite3_pcache_methods'
8786 | void *pArg;
8787 | int (*xInit)(void*);
8788 | void (*xShutdown)(void*);
❌ (ios/Pods/Headers/Public/react-native-quick-sqlite/sqlite3.h:10111:3)
10109 | typedef struct sqlite3_snapshot {
10110 | unsigned char hidden[48];
> 10111 | } sqlite3_snapshot;
| ^ typedef redefinition with different types ' vs 'struct sqlite3_snapshot')
10112 |
10113 | /*
10114 | ** CAPI3REF: Record A Database Snapshot
› Preparing [APP_SCHEME] » Info.plist
Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hermes-engine' from project 'Pods')
Run script build phase 'Upload Debug Symbols to Sentry' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target '[APP_SCHEME]' from project '[APP_SCHEME]')
Run script build phase '[CP-User] [RN]Check rncore' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-FabricComponents' from project 'Pods')
Run script build phase '[CP-User] [RN]Check rncore' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-Fabric' from project 'Pods')
Run script build phase '[CP-User] Generate updates resources for expo-updates' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXUpdates' from project 'Pods')
Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')
▸ ** BUILD FAILED **
▸ The following build commands failed:
▸ EmitSwiftModule normal arm64 (in target '[APP_SCHEME]' from project '[APP_SCHEME]')
▸ SwiftEmitModule normal arm64 Emitting\ module\ for\ [APP_SCHEME] (in target '[APP_SCHEME]' from project '[APP_SCHEME]')
▸ EmitSwiftModule normal x86_64 (in target '[APP_SCHEME]' from project '[APP_SCHEME]')
▸ SwiftEmitModule normal x86_64 Emitting\ module\ for\ [APP_SCHEME] (in target '[APP_SCHEME]' from project '[APP_SCHEME]')
▸ Building workspace [APP_SCHEME] with scheme [APP_SCHEME] and configuration Debug
▸ (5 failures)
** BUILD FAILED **
The following build commands failed:
EmitSwiftModule normal arm64 (in target '[APP_SCHEME]' from project '[APP_SCHEME]')
SwiftEmitModule normal arm64 Emitting\ module\ for\ [APP_SCHEME] (in target '[APP_SCHEME]' from project '[APP_SCHEME]')
EmitSwiftModule normal x86_64 (in target '[APP_SCHEME]' from project '[APP_SCHEME]')
SwiftEmitModule normal x86_64 Emitting\ module\ for\ [APP_SCHEME] (in target '[APP_SCHEME]' from project '[APP_SCHEME]')
Building workspace [APP_SCHEME] with scheme [APP_SCHEME] and configuration Debug
(5 failures)
Exit status: 65
+---------------------------------------+
| Build environment |
+-------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.225.0 |
| sdk | iPhoneSimulator18.1.sdk |
+-------------+-------------------------+
Project dependencies:
"expo": "~52.0.7"
"react-native": "0.76.2"
"react-native-quick-sqlite": "^8.2.6"
Is this project using Expo Go or development build?
Version 9.0.0 causes the EAS build to fail:
Project dependencies:
Any idea on how to fix this? 🤔