这是我在简单执行以下命令时遇到的错误
$ swift build
The Error:
error: popen(arguments: ["/Library/Developer/Toolchains/swift-3.1.1-RELEASE.xctoolchain/usr/bin/swiftc", "--driver-mode=swift", "-I", "/Library/Developer/Toolchains/swift-3.1.1-RELEASE.xctoolchain/usr/lib/swift/pm", "-L", "/Library/Developer/Toolchains/swift-3.1.1-RELEASE.xctoolchain/usr/lib/swift/pm", "-lPackageDescription", "-target", "x86_64-apple-macosx10.10", "/Users/medampudi/Dropbox/MobileApp/OpenSourceSwift/HelloWorld/Package.swift", "-fileno", "5"], posix_spawn error: No such file or directory (2), `["/Library/Developer/Toolchains/swift-3.1.1-RELEASE.xctoolchain/usr/bin/swiftc", "--driver-mode=swift", "-I", "/Library/Developer/Toolchains/swift-3.1.1-RELEASE.xctoolchain/usr/lib/swift/pm", "-L", "/Library/Developer/Toolchains/swift-3.1.1-RELEASE.xctoolchain/usr/lib/swift/pm", "-lPackageDescription", "-target", "x86_64-apple-macosx10.10", "/Users/medampudi/Dropbox/MobileApp/OpenSourceSwift/HelloWorld/Package.swift", "-fileno", "5"]`)
这是在MacOS Sierra Swift 3.1.1上遇到的,xcode8.3.2设置了任何帮助或指针。
答案 0 :(得分:0)
关闭错误。重新安装并解决了这个问题。但是,建议在安装后重新启动。