Git Product home page Git Product logo

Comments (13)

mickael-menu avatar mickael-menu commented on August 26, 2024

I'm not sure what's causing this. Maybe a permissions issue on the folder? Can you run fine on a real device?

I would open an issue on https://github.com/stephencelis/SQLite.swift, as the error is triggered by this third-party dependency.

from swift-toolkit.

22222912 avatar 22222912 commented on August 26, 2024

The above error is I have runned it on iPad

from swift-toolkit.

22222912 avatar 22222912 commented on August 26, 2024

in addition I run test app. by Carthage making , replace my own bundle id of "org.readium.TestApp",
I find that it run crush on device when launching with。another error. "unable to open database file"
企业微信截图_17f92f3c-4157-4aff-802d-c631156c2fbb

企业微信截图_b784b5a6-0ce4-4a59-8598-327fd3392173

and find some answer
https://stackoverflow.com/questions/77206338/xcode-15-ios-17-objc3422-class-ttc6sqlite-is-implemented-in-both-one-o

from swift-toolkit.

mickael-menu avatar mickael-menu commented on August 26, 2024

This looks like the same error but in a different context : in the Test App SQLite database with the GRDB dependency instead of SQLite.swift.

I do have the same warnings about _TtC6SQLite* symbols, I don't know if this is the culprit for the crash you observe, but it is definitely concerning with the StackOverflow link you shared.

There's another relevant SQLite.swift issue reported there: stephencelis/SQLite.swift#1177

I think this will increase the priority of a task that was postponed: removing the SQLite database from the ReadiumLCP package, for the v3.

Unfortunately I don't have any solution to offer right now.

from swift-toolkit.

mickael-menu avatar mickael-menu commented on August 26, 2024

Just for debugging purposes, do you still have the same crash if you don't enable LCP in the Test App and your app? ReadiumLCP is the only package that depend on SQLite.swift.

from swift-toolkit.

22222912 avatar 22222912 commented on August 26, 2024

I find that test app run successfully in simulator but crush in device,
here is the key point

there. is no database.dbfile file to init with Appmodel class ,
企业微信截图_7d63adae-a186-4da7-9abe-da65b597494d

企业微信截图_6d729a2e-8d82-4daa-bab3-d77c1ebc7b04

from swift-toolkit.

22222912 avatar 22222912 commented on August 26, 2024

I intergate LCP to my own app,app run successfully,but when I use some lcp class,it crush!

when I new a class extend DRMLibraryService,run in device. and new that class it also crush without daabase.db file

企业微信截图_ec4962d2-5675-46ca-ae20-9603e970d08d

from swift-toolkit.

mickael-menu avatar mickael-menu commented on August 26, 2024

If you remove LCP in the Test App (generate with make dev for example, without using the lcp= parameter), are you able to run the app without crash on your device?

I want to know if the problem is triggered by embedding SQLite.swift in the toolkit.

from swift-toolkit.

22222912 avatar 22222912 commented on August 26, 2024

I make by Carthage
here is my operation
Run only”make carthage” instead of “make carthage lcp=https://lixxx/ios/XX/liblcp.json”
found that test app without LCPClient also crush in device

from swift-toolkit.

mickael-menu avatar mickael-menu commented on August 26, 2024

Hmm okay, then I'm not sure it's related to the StackOverflow you shared earlier. Besides something weird with your device, I don't have a better idea.

from swift-toolkit.

22222912 avatar 22222912 commented on August 26, 2024

I have intergated to my app run successfully and open lcpl format file to read in simulator but faile d in device with the above problem

from swift-toolkit.

22222912 avatar 22222912 commented on August 26, 2024

from swift-toolkit.

mickael-menu avatar mickael-menu commented on August 26, 2024

I removed the SQLite.swift dependency from the ReadiumLCP package in #442. Hopefully this will allow apps to circumvent any issues integrating SQLite.swift by implementing a different repository.

from swift-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.