Chapter 6 - Problem generating Xcode Project

I am trying to add the PostgreSQL database to the book tutorial project, but, after I downloaded the Docker, started running PostgreSQL and modified the Package.swift file as the book suggested, I tried to regenerate the Xcode project, but I keep getting the error below:

Generating Xcode Project [Failed]
‘FluentPostgreSQL’ /Users/victorsmelo/vapor/TILApp/.build/checkouts/fluent-postgresql.git-4102665397048071377: error: product dependency ‘FluentSQL’ not found

Error: Could not generate Xcode project: ‘FluentPostgreSQL’ /Users/victorsmelo/vapor/TILApp/.build/checkouts/fluent-postgresql.git-4102665397048071377: error: product dependency ‘FluentSQL’ not found

Any idea about how can I solve this?

Thanks!

I’m getting the same issue

@victorsmelo looks like the latest Fluent RC has messed things up - run rm -rf .build Package.resolved to clean and try again

3 Likes

The FIX that worked for me was to simply run “vapor update” in the project folder. This fixed all the problems, then asked to recreate the Xcode project and open it etc.

3 Likes

It’s working now. I did both solutions. Thanks!

1 Like