Skip to content

Redefinition of 'sqlite3_file' sqlite3_io_methods' 'sqlite3_vfs' 'sqlite3_mem_methods' 'sqlite3_snapshot' #673

Open
@PiggyChen

Description

@PiggyChen

Hi, our project integrates a third party library: odb(https://www.codesynthesis.com/products/odb/download.xhtml), and the mixpanel-swift using the system SQLite3(in MPDB.swift file):
`import Foundation
import SQLite3

class MPDB {
private var connection: OpaquePointer?
private let SQLITE_TRANSIENT = unsafeBitCast(-1, to: sqlite3_destructor_type.self)
private let DB_FILE_NAME: String = "MPDB.sqlite"`

This causing a Redefinition issue:
Redefinition of 'sqlite3_file'
Redefinition of 'sqlite3_io_methods'
Redefinition of 'sqlite3_vfs'
Redefinition of 'sqlite3_mem_methods'
Redefinition of 'sqlite3_module'
Redefinition of 'sqlite3_index_info'
Redefinition of 'sqlite3_index_constraint'
Redefinition of 'sqlite3_index_orderby'
Redefinition of 'sqlite3_index_constraint_usage'
Redefinition of 'sqlite3_vtab'
Redefinition of 'sqlite3_vtab_cursor'
Redefinition of 'sqlite3_mutex_methods'
Redefinition of 'sqlite3_pcache_page'
Redefinition of 'sqlite3_pcache_methods2'
Redefinition of 'sqlite3_pcache_methods'
Redefinition of 'sqlite3_snapshot'

Can mixpanel-swift replace a DB implement(not use system SQLite3), or can you give some advice to avoid this issue. thank you.

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