Vapor

Vapor

920 发布: 2022/5/13 17:00 本文总阅读量

Vapor

Vapor-4.0

解决拉取依赖慢的问题

1.命令行链接代理
参考上一篇:命令行设置代理

2.终端执行:

以下命令可使用xcodebuild -help来获取
shell里面[]表示这个参数是可选的,<>表示参数是必须的

xcodebuild -resolvePackageDependencies -scmProvider system

如果有多个Project,请根据提示添加-project参数

3.命令行继续执行:

vapor xcode

端口

运行提示:

Address already in use...

首先:查看占用端口的PID

sudo lsof -i:8080

端口占用结果:

COMMAND     PID  USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
QQ          576 yb007   30u  IPv4 0xdddc49affcbdffe1      0t0  TCP 192.168.1.238:57715->106.53.142.30:http-alt (ESTABLISHED)
QQ          576 yb007   31u  IPv4 0xdddc49affcbdffe1      0t0  TCP 192.168.1.238:57715->106.53.142.30:http-alt (ESTABLISHED)
Google     1430 yb007   23u  IPv4 0xdddc49affcbef541      0t0  TCP localhost:59813->localhost:http-alt (ESTABLISHED)
Google     1430 yb007   26u  IPv4 0xdddc49affc74efe1      0t0  TCP localhost:59814->localhost:http-alt (ESTABLISHED)
Run       41505 yb007    8u  IPv4 0xdddc49affcbf3541      0t0  TCP localhost:http-alt (LISTEN)
Run       41505 yb007    9u  IPv4 0xdddc49affd1acfe1      0t0  TCP localhost:http-alt->localhost:59813 (ESTABLISHED)
Run       41505 yb007   10u  IPv4 0xdddc49affd1c2fe1      0t0  TCP localhost:http-alt->localhost:59814 (ESTABLISHED)

然后:根据PID如上图的:41505】杀掉进程

sudo kill -9 41505

资料

资料