vapor xcode failed

  • dependencies错误
$ vapor xcode
Generating Xcode Project [Failed]
/Users/roo/Roo/Vapor/Demo: error: manifest parse error(s):
/Users/roo/Roo/Vapor/Demo/Package.swift:9:19: error: expression type '[Package.Dependency].Type' is ambiguous without more context
    dependencies: [
                  ^

Error: Could not generate Xcode project: /Users/roo/Roo/Vapor/Demo: error: manifest parse error(s):
/Users/roo/Roo/Vapor/Demo/Package.swift:9:19: error: expression type '[Package.Dependency].Type' is ambiguous without more context
    dependencies: [
                  ^

大意了, 缺了 逗号 “,”

  • 无法生成  *.xcodeproj  文件

昨天换了一台设备,又遇到了一个新的问题

admindeMacBook-Pro:TestDemo bear$ vapor xcode
Generating Xcode Project [Done]
Select the `Run` scheme to run.
Open Xcode project?
y/n> y
Opening Xcode project...
Error: backgroundExecute(code: 1, error: "The file /Users/bear/Roo/Vapor/TestDemo/*.xcodeproj does not exist.\n", output: "")

没有报错,但是 *.xcodeproj 文件没有生成,执行 swift package generate-xcodeproj 时,CommandLineTools里报image not found

$ swift package generate-xcodeproj
dyld: Library not loaded: @rpath/llbuild.framework/Versions/A/llbuild
  Referenced from: /Library/Developer/CommandLineTools/usr/bin/swift-package
  Reason: image not found
Abort trap: 6

应该是 xcode CommandLineTools 的问题,新设备是 10.3的,打开 "Xcode > Preferences > Locations > Command Line Tools" 发现Command line tools  no xcode selected,点击只有一个选择,输入密码 选中

Command Line Tools

 

vapor issue里大牛说是链接混乱,必须运行xcode-select来激活 xcode 安装

sudo xcode-select -s /Applications/Xcode.app

Stack Overflow 提供的命令

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
  • SSL问题
Generating Xcode Project [Failed]
error: failed to clone; Cloning into bare repository '/Users/bear/Roo/Vapor/LearnVapor/.build/repositories/vapor-2c13b66e'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Error: Could not generate Xcode project: error: failed to clone; Cloning into bare repository '/Users/bear/Roo/Vapor/LearnVapor/.build/repositories/vapor-2c13b66e'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

网络的问题,公司的网不行,那就连热点。

 

一直在做移动端,后台里的事真的不懂,碰到一点记录一点

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值