Hello Here I got an error starting new project with vapor, I've ben follow the instruction from documentation here https://docs.vapor.codes/3.0/getting-started/hello-world/
when I going to step vapor xcode there is an error apear, like bellow :
Error: backgroundExecute(code: 1, error: "The file /Users/jauharibill/Vapor/Hello/*.xcodeproj does not exist.\n", output: "")
also here when launch command vapor version
rror: Error Domain=NSCocoaErrorDomain Code=260 "The folder “checkouts” doesn’t exist." UserInfo={NSFilePath=./.build/checkouts/, NSUserStringVariant=(
Folder
), NSUnderlyingError=0x7fe259d0d760 {Error Domain=NSOSStatusErrorDomain Code=-43 "fnfErr: File not found"}}
please kindly help me, thankyou.
vapor xcode at project directoryI'm not sure why you are getting the first error, but the second one is because you haven't built your project yet (use swift build) to do this. The error used to be handled gracefully but it broke somewhere along the way and apparently hasn't been fixed yet.
I'm not sure why you are getting the first error, but the second one is because you haven't built your project yet (use
swift build) to do this. The error used to be handled gracefully but it broke somewhere along the way and apparently hasn't been fixed yet.
oh thanks, thats error disappear when I navigate out of project folder, but the first error still not fixed.
Out of curiousity, what did you name your project when it was created?
Out of curiousity, what did you name your project when it was created?
Seem as documentation Hello. is it problem?
I think that name should be OK. What's the output of swift package generate-xcodeproj?
I think that name should be OK. What's the output of
swift package generate-xcodeproj?
here's the output.
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /Library/Developer/CommandLineTools/usr/bin/swift-package
Reason: image not found
Abort trap: 6
Homebrew borked your Swift install. Use xcode-select to fix that:
sudo xcode-select -p /Applications/Xcode.app
Homebrew borked your Swift install. Use
xcode-selectto fix that:sudo xcode-select -p /Applications/Xcode.app
I think you mean is sudo xcode-select -s /Applications/Xcode.app
but thanks for hint, its fix my problem. thank you so much everyone I'll close this issue.
Can this be put in an FAQ somewhere or make an improved error message? I also ran into this and it took awhile to find this issue.
Same here
It might be because there is not Command Line Tool is select in your Xcode.
Go to Xcode > Preferences > Locations > select a tool from dropdown next to Command Line Tools
Most helpful comment
I think you mean is
sudo xcode-select -s /Applications/Xcode.appbut thanks for hint, its fix my problem. thank you so much everyone I'll close this issue.