Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vapor build failure

I am using Mac with Sierra OS (10.12.5). I Installed Vapor using home-brew. If I tried to run command 'vapor build' in terminal it shows following error.

No .build folder, fetch may take a while...
Fetching Dependencies [  •                      ]
Error: backgroundExecute(code: 1, error: "swift-package: error: unknown command: --enable-prefetching\n", output: "")

Please help me.

like image 798
karthik Avatar asked Dec 24 '22 15:12

karthik


1 Answers

If you installed latest xcode and still getting error.

Goto: xcode -> Preferences -> Locations -> Command Line Tool

Change it to latest. Then check swift version. Then try vapor commands.

like image 117
karthik Avatar answered Jan 05 '23 06:01

karthik