Lighter-swift / Lighter

Swift APIs for SQLite: Type-safe down to the schema. Very, very, fast. Dependency free.
https://lighter-swift.github.io/documentation/lighter/
MIT License
460 stars 12 forks source link

Adding two .sqlite3 or .db files "unable to load transferred PIF" error when building #19

Open murdocdv opened 1 year ago

murdocdv commented 1 year ago

The main project I want to use this project with has two .sqlite3 files added as resources to the target.

When I build after configuring the Enlighter plug-in, I get the following error:

Build service could not create build operation: unable to load transferred PIF: PIFLoader: GUID '~/Library/Developer/Xcode/DerivedData/LighterTesting-euoeynunaavusyczdlhoedwycgua/SourcePackages/plugins/LighterTesting.output/LighterTesting/Enlighter/cities3.0.sqlite3' has already been registered

I can easily reproduce this in a sample project.

  1. Created a new project - Multiplatform app, no Core Data or Tests
  2. Add the Lighter package
  3. Configure Enlighter as a build tool plug-in
  4. Add two different .sqlite3 files, one .sqlite3 file & one .db file, or two .db files
  5. Build

You will then see the above error.

Screenshot 2023-01-16 at 10 40 01 PM Screenshot 2023-01-16 at 10 40 49 PM
helje5 commented 1 year ago

Probably more like an Xcode bug, but I'll have a look.