brew install xcodegen.cd /Users/gibou/code/github/workout-app
xcodegen generate
open WorkoutApp.xcodeproj
Then in Xcode:
The app launches into the empty journal. Type “a banana” + Done — the mock resolver will fill in calories.
xcodegen generate
Then in Xcode: File → “Revert changes” if it complains about the project file having changed externally, or just close + reopen.
xcodebuild \
-project WorkoutApp.xcodeproj \
-scheme WorkoutApp \
-destination 'platform=iOS Simulator,name=iPhone 15' \
build
Substitute the simulator name with one from xcrun simctl list devices available | grep iPhone.
xcodebuild \
-project WorkoutApp.xcodeproj \
-scheme WorkoutApp \
-destination 'platform=iOS Simulator,name=iPhone 15' \
test
See BACKEND_SETUP.md. TL;DR:
WorkoutApp/Resources/Secrets.example.xcconfig → Secrets.xcconfig.BACKEND_URL and BACKEND_ANON_KEY.xcodegen generate.xcodegen generate again.PersistenceController.preview (in-memory). If a preview-only seed depends on a new field, update Services/Persistence/SeedData.swift.