Closed deirdresm closed 2 months ago
The App
in App.User
refers to the executable target.
You must have another symbol App
in your executable.
Yeah looking at your repo. If you rename the symbol App
to something else then it should work fine.
I assume you built this from the template. I have updated the symbol name in the template to AppCommand
.
Confirmed that changing the symbol name to AppCommand fixes the issue. Thank you very much for your help.
Repo here: https://github.com/deirdresm/HBToDoFluentAuthPG
Only changes were in Package.swift (to include Postgres) and in Application+build.swift to conditionally add postgres, but the resulting error is in UserRepository.swift:
typealias User = App.User
…gets the error message:
'User' is not a member type of struct 'App.App'
Which, it's not in the sqlite version's definition of App either, so I'm mystified why one compiles and the other doesn't. So there's something that's inferred that Xcode's not finding.
This is on Xcode 16.0 (16A242d) on macOS 14.6.1 (23G93).