Xcode Package no more Run destination

Hi,

I am currently acquiring the basics for Swift Vapor development. I found the e-book SWIFT FOR SERVER SIDE DEVELOPMENT WITH VAPOR which seems to be the only doc available of this type and which I am reading through, trying all the examples (labs).

The fact is that every line of the labs is a struggle. Main reasons:

  • many invlaid indications like e.g. DotEnv package url or command vapor run migrate
  • not Xcode users oriented (you have to find the tricks by yourself)
  • no repository of the examples and impossible to copy paste a snippet without two lines of copyrights...

Now I am facing a major inconvenient as the running destination has disappeared from the toolbar and I cannot run the app anymore :

I tried everything:

  • Scheme: edit scheme (had to add a target)
  • Destination : shows The active scheme has no target
  • Clean buil folder, clean project, delete derived data, etc.

nothing seems to work.

Can someone help me out ?

I solved the issue:

I started it all over from a new package and followed the same steps.

And it seems to be related to the Validation package. In the book it is advised to add a dependency and update the executableTarget with an external package. But it seems that there is already a built-in validation package in Vapor and when I removed the dependency importation the running target came back !
And the import Validation appears to be not required.

Well I am happy to have solved the issue but it seems to me an expensive learning process :downcast_face_with_sweat: !

If your book is telling you to add validation as a dependency then it must be a very old book as that hasn't been the case for several years now!

Maybe. Allthough it is marked : "First edition published in 2025" !
Author : Don Liatt (L_AI_tt ?) The advantage : it is unexpensive (only a couple of dollars). A pity there is nothing better to learn this nice framework :slightly_frowning_face:

You really should start with official Vapor docs: https://docs.vapor.codes/ . It costs 0 dollars.

It’s actually quite simple to get started using the up-to-date official docs, rather than some E-books by some random guy.

1 Like

I’m certain this book is just AI slop. As @lsb mentioned, the documentation is free and up-to-date.

1 Like