Lighter
Lighter copied to clipboard
Xcode 15 issue when the creation script is named the same like the DB
Your package looks outstanding. Thank you. I would like to use it to replace GRDB in my current app development. I followed the getting started steps but instead of using an existing database, I added stations.sql to my project.
I get this Xcode error. Multiple commands produce '/Users/iansmith/Library/Developer/Xcode/DerivedData/TryLighterStations-euddgsmncyclyietjarityspmrwp/Build/Products/Debug-iphonesimulator/TryLighterStations.app/station.sql'
The error also provides this information.
- Target 'TryLighterStations' (project 'TryLighterStations') has copy command from '/Users/iansmith/Documents/Developer/Tutorials, Examples and Experiments/Experiments/TryLighterStations/TryLighterStations/TryLighterStations/station.sql' to '/Users/iansmith/Library/Developer/Xcode/DerivedData/TryLighterStations-euddgsmncyclyietjarityspmrwp/Build/Products/Debug-iphonesimulator/TryLighterStations.app/station.sql'
- Target 'TryLighterStations' (project 'TryLighterStations') has copy command from '/Users/iansmith/Library/Developer/Xcode/DerivedData/TryLighterStations-euddgsmncyclyietjarityspmrwp/SourcePackages/plugins/TryLighterStations.output/TryLighterStations/Enlighter/station.sql' to '/Users/iansmith/Library/Developer/Xcode/DerivedData/TryLighterStations-euddgsmncyclyietjarityspmrwp/Build/Products/Debug-iphonesimulator/TryLighterStations.app/station.sql'
This is my station.sql: CREATE TABLE station ( country_code TEXT, home_page TEXT, icon_url TEXT, latitude REAL, longitude REAL, name TEXT NOT NULL, ordered_by_name TEXT NOT NULL, location TEXT NOT NULL, id TEXT NOT NULL PRIMARY KEY, url TEXT NOT NULL, genre_list TEXT );
CREATE INDEX country_index ON station (country_code); CREATE INDEX name_index ON station (name); CREATE INDEX ordered_by_name_index ON station (ordered_by_name);
CREATE TABLE station_genre ( genre TEXT NOT NULL, station_id TEXT NOT NULL REFERENCES station (id) ON DELETE CASCADE )
I am using Xcode Version 15.0.1 (15A507) and running on an ios17 simulator.
Perhaps I am not adding the .sql file to my project correctly. I am at a loss about where I went wrong. I would be most grateful for any guidance you could offer.