Calling some functions, such as sqlite3_libversion(), from Objective-C causes the compile error "Use of undeclared identifier 'sqlite3_api'". See this minimal test. Swift code calling these functions compile fine.
As a workaround, #defineing either SQLITE_CORE or SQLITE_OMIT_LOAD_EXTENSIONS in sqlite3ext.h removes this error. This suggests that the SQLITE_CORE definition in Package.swift is somehow not being handled correctly when called through Objective-C.
I'll continue looking at this, but any ideas of how this is happening only in Objective-C or how to narrow down the investigation are appreciated.
Calling some functions, such as
sqlite3_libversion(), from Objective-C causes the compile error "Use of undeclared identifier 'sqlite3_api'". See this minimal test. Swift code calling these functions compile fine.As a workaround,
#defineing eitherSQLITE_COREorSQLITE_OMIT_LOAD_EXTENSIONSinsqlite3ext.hremoves this error. This suggests that theSQLITE_COREdefinition inPackage.swiftis somehow not being handled correctly when called through Objective-C.I'll continue looking at this, but any ideas of how this is happening only in Objective-C or how to narrow down the investigation are appreciated.