# Error: No builds found for debug configuration

**URL:** <https://forums.kodeco.com/t/error-no-builds-found-for-debug-configuration/80970>\
**Category:** Server Side Swift with Vapor\
**Created:** [September 5, 2019, 4:19pm UTC](https://forums.kodeco.com/t/error-no-builds-found-for-debug-configuration/80970 "2019-09-05T16:19:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeneirinck](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mikeneirinck/32/81494_2.png) [@mikeneirinck](https://forums.kodeco.com/u/mikeneirinck)\
**Post date:** [September 5, 2019, 4:19pm UTC](https://forums.kodeco.com/t/error-no-builds-found-for-debug-configuration/80970/1 "2019-09-05T16:19:04Z")

</div>

I am at page 28 of chapter 1 and am running into this error. How to proceed? ![vapor](https://files.chunter.kodeco.com/original/3X/a/e/ae9f203ad664fe8045203ca84a2299dd431bb1f0.png)

---

<div class="post-metadata">

**Author:** ![mikeneirinck](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mikeneirinck/32/81494_2.png) [@mikeneirinck](https://forums.kodeco.com/u/mikeneirinck)\
**Post date:** [September 5, 2019, 6:18pm UTC](https://forums.kodeco.com/t/error-no-builds-found-for-debug-configuration/80970/2 "2019-09-05T18:18:21Z")

</div>

@0xtim Any suggestions?

---

<div class="post-metadata">

**Author:** ![mikeneirinck](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mikeneirinck/32/81494_2.png) [@mikeneirinck](https://forums.kodeco.com/u/mikeneirinck)\
**Post date:** [September 5, 2019, 6:43pm UTC](https://forums.kodeco.com/t/error-no-builds-found-for-debug-configuration/80970/3 "2019-09-05T18:43:06Z")

</div>

Found it myself. You must run vapor xcode -y  
Sighs

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [September 9, 2019, 2:08pm UTC](https://forums.kodeco.com/t/error-no-builds-found-for-debug-configuration/80970/4 "2019-09-09T14:08:55Z")

</div>

Apologies for the delay - this usually means that the command line tools have overwritten what you need. Running `xcode-select -s /Applications/Xcode.app` should fix it

(You’ll get a better error message running `swift build` as well)

---

<div class="post-metadata">

**Author:** ![dreyes](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dreyes/32/81494_2.png) [@dreyes](https://forums.kodeco.com/u/dreyes)\
**Post date:** [October 5, 2019, 8:26pm UTC](https://forums.kodeco.com/t/error-no-builds-found-for-debug-configuration/80970/5 "2019-10-05T20:26:26Z")

</div>

I have run into the same error as listed at the top:

Davids-MacBook-Air:HelloVapor davidreyes$ vapor run  
Error: No builds found for debug configuration.

I have tried both command line suggestions:  
Davids-MacBook-Air:HelloVapor davidreyes$ vapor xcode -y  
Generating Xcode Project [Done]  
Select the `Run` scheme to run.  
Open Xcode project?  
y/n\> yes  
Opening Xcode project…  
Error: backgroundExecute(code: 1, error: “The file /Users/davidreyes/vapor/HelloVapor/\*.xcodeproj does not exist.\n”, output: “”)

And again:  
Davids-MacBook-Air:HelloVapor davidreyes$ xcode-select -s /Applications/Xcode.app  
xcode-select: error: --switch must be run as root (e.g. `sudo xcode-select --switch <xcode_folder_path>`).

Can someone explain what these errors are trying to tell me, and what I should do to proceed?

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [October 7, 2019, 1:41pm UTC](https://forums.kodeco.com/t/error-no-builds-found-for-debug-configuration/80970/6 "2019-10-07T13:41:46Z")

</div>

@dreyes so the first error `No builds found for debug configuration` means that there are no binaries to run - you haven’t built the binary before attempting to run it. You need to do `vapor build` before `vapor run` (although `swift run` will do both).

However, you’ll need to fix the second error first. `-switch must be run as root` means you need super user permissions to execute the command. So if you follow the suggestion and prepend your command with `sudo` (Super User DO) then it should work.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![dreyes](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dreyes/32/81494_2.png) [@dreyes](https://forums.kodeco.com/u/dreyes)\
**Post date:** [October 7, 2019, 2:46pm UTC](https://forums.kodeco.com/t/error-no-builds-found-for-debug-configuration/80970/7 "2019-10-07T14:46:54Z")

</div>

Thank you so much for your help, @0xtim! Your suggestions fixed the problem.

Here are the steps that allowed the command to execute:

> sudo xcode-select -s /Applications/Xcode.app  
> vapor build  
> vapor run

---

<div class="post-metadata">

**Author:** ![dreyes](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dreyes/32/81494_2.png) [@dreyes](https://forums.kodeco.com/u/dreyes)\
**Post date:** [October 7, 2019, 2:55pm UTC](https://forums.kodeco.com/t/error-no-builds-found-for-debug-configuration/80970/8 "2019-10-07T14:55:59Z")

</div>

Though I am now able to see output in a browser window, I am unable to return to my command line prompt.

After running the above commands, Vapor responded with the following lines:

Davids-MacBook-Air:HelloVapor davidreyes$ vapor run  
Running HelloVapor …  
[INFO] Migrating ‘sqlite’ database (/Users/davidreyes/vapor/HelloVapor/.build/checkouts/fluent/Sources/Fluent/Migration/MigrationConfig.swift:69)  
[INFO] Preparing migration ‘Todo’ (/Users/davidreyes/vapor/HelloVapor/.build/checkouts/fluent/Sources/Fluent/Migration/Migrations.swift:111)  
[INFO] Migrations complete (/Users/davidreyes/vapor/HelloVapor/.build/checkouts/fluent/Sources/Fluent/Migration/MigrationConfig.swift:73)  
Running default command: .build/debug/Run serve  
Server starting on [http://localhost:8080](http://localhost:8080)  
[ERROR] Abort.404: Not Found (ApplicationResponder.swift:50)

Why am I unable to return to the command line prompt?  
What should I do to cancel Vapor and allow me to return to a command line prompt?

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [October 7, 2019, 3:17pm UTC](https://forums.kodeco.com/t/error-no-builds-found-for-debug-configuration/80970/9 "2019-10-07T15:17:47Z")

</div>

The app is keeping the terminal input whilst it runs. To exit the app (or stop it) do `CTRL+C`

---

<div class="post-metadata">

**Author:** ![dreyes](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dreyes/32/81494_2.png) [@dreyes](https://forums.kodeco.com/u/dreyes)\
**Post date:** [October 7, 2019, 6:46pm UTC](https://forums.kodeco.com/t/error-no-builds-found-for-debug-configuration/80970/10 "2019-10-07T18:46:04Z")

</div>

Yup, that worked. Thanks @0xtim for your patient assistance.
