OP-Engineering / op-sqlite

Fastest SQLite library for react-native by @ospfranco
MIT License
598 stars 41 forks source link

iOS 13.4 ld: Undefined symbols: #169

Closed Noah-chi closed 1 month ago

Noah-chi commented 1 month ago
ld: Undefined symbols:
  opsqlite::opsqlite_open(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&), referenced from:
      opsqlite::DBHostObject::DBHostObject(facebook::jsi::Runtime&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&, std::__1::shared_ptr<facebook::react::CallInvoker>, std::__1::shared_ptr<opsqlite::ThreadPool>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&) in libop-sqlite.a[4](DBHostObject.o)
  opsqlite::opsqlite_close(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&), referenced from:
      opsqlite::DBHostObject::create_jsi_functions()::$_3::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) const in libop-sqlite.a[4](DBHostObject.o)
  opsqlite::opsqlite_attach(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&), referenced from:
   "@op-engineering/op-sqlite": "9.2.3",
  "op-sqlite": {
    "sqlcipher": false,
    "crsqlite": false,
    "performanceMode": "1",
    "iosSqlite": false,
    "fts5": true,
    "libsql": false,
    "sqliteVec": true
  }

Am I missing a library ?

ospfranco commented 1 month ago

Are you on the latest version?

Noah-chi commented 1 month ago

Are you on the latest version?

yes I use ^9.1.3

ospfranco commented 1 month ago

As it is clearly stated in the issue template, you need to create a reproducible example. Nothing is wrong on the tests on the latest version, so it has to be something on your project. Closing this. Feel free to re-open once you have a reproducible example.