#!/usr/bin/env swift // Run this script to generate a pre-built SwiftData store (default.store) // that ships with the app bundle. No first-launch seeding needed. import Foundation import SwiftData // We can't easily run this as a standalone script because it needs // the @Model types compiled. Instead, we'll build it as part of the app. // See DataLoader.buildPreloadedStore() below. print("Use DataLoader.buildPreloadedStore() from within the app to generate the store.") print("Then copy the .store file to the bundle.")