最近看到Vapor又更新了,然后刚好有点时间,所以就想着来学学
以前跟着网上的教程玩过Vapor2,但基本都忘光了,今天下班了有照着官方文档来一波。。。但是出错了。。。
代码语言:javascript复制vapor zhy$ vapor new Hello
Cloning Template [Done]
Updating Package Name [Done]
Initializing git repository [Done]
**
**~~**
**~~~~~~**
**~~~~~~~~~~**
**~~~~~~~~~~~~~~**
**~~~~~~~~~~~~~~~~~~**
**~~~~~~~~~~~~~~~~~~~~~~**
**~~~~~~~~~~~~~~~~~~~~~~~~**
**~~~~~~~~~~~~~~~~~~~~~~~~~~**
**~~~~~~~~~~~~~~~~~~~~~~~~~~~~**
**~~~~~~~~~~~~~~~~~~~~~~~~~~~~**
**~~~~~~~~~~~~~~~~~~~~~ ~~~**
**~~~~~~~~~~~~~~~~~~~ ~~~**
***~~~~~~~~~~~~~~~ ~~~***
****~~~~~~~~~~ ~~****
*****~~~~~~~~~*****
*************
_ __ ___ ___ ___
/ / / | |_) / / | |_)
_/ /_/-- |_| __/ |_|
a web framework for Swift
Project "Hello" has been created.
Type `cd Hello` to enter the project directory.
Use `vapor cloud deploy` to host your project for free!
Enjoy!
cd Hello/
vapor xcode
Generating Xcode Project [Failed]
error: unknown option --enable-prefetching; use --help to list available options
Error: Could not generate Xcode project: error: unknown option --enable-prefetching; use --help to list available options
就是这个错误啦。。。。然后各种百度。。。然后还是没解决,然后就开始升级。。。先是升级homebrew...然后想重新安装vapor
代码语言:javascript复制brew update
Already up-to-date.
brew install vapor
==> Installing vapor from vapor/tap
Error: vapor 3.1.3 is already installed
To upgrade to 3.1.7, run `brew upgrade vapor`
brew upgrade vapor
然后就是等,然后居然解决了。。。以后还是要先把环境配好在开始啊。。
代码语言:javascript复制vapor xcode
Generating Xcode Project [Done]
记录贴。。。