使用perfect写swift服务

作为一个iOS开发,我真是太难了。

尝试使用perfect开发swift服务,来提供数据。

perfect中文文档地址https://www.perfect.org/docs/gettingStarted_zh_CN.html

里面写的很详细

需要四句话开启服务

git clone https://github.com/PerfectlySoft/PerfectTemplate.gitcd PerfectTemplateswift build.build/debug/PerfectTemplate

但是我的电脑在执行完四句话以后

dyld: Library not loaded: @rpath/libswiftCore.dylib

  Referenced from: /Library/Developer/CommandLineTools/usr/bin/swift-build

  Reason: image not found

Abort trap: 6

感觉整个人都不好了。百度了一番,说是Ruby版本/路径有问题

执行brew install [email protected],这会还在执行中,还没有完成,还没有完成。遂放弃。不小心关闭了页面,又打开,真是做的太好了,写的东西竟然没丢。我喜欢这种感觉。

perfect扑街,看来是走不通了。试试用第二好用的框架Vapor

https://github.com/vapor/vapor

http://vapor.university/文档看起来还不错,有很多种类,包括网站等等,不同类型。

天色不早了,从入门到放弃吧,明天在来更。

你可能感兴趣的:(使用perfect写swift服务)