I've updated to the latest version, RC2, and now i cannot build the project.
vapor new MyProject --branch=beta
cd MyProject/
vapor update
vapor build
Successful build.
Building Project [Failed]
Command:
build
Error (1):
error: terminated(1): /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/debug.yaml main output:
Output:
Compile CNIOLinux shim.c
Compile CNIODarwin shim.c
Compile CNIOSHA1 c_nio_sha1.c
Compile CNIOZlib empty.c
Compile CNIOHTTPParser c_nio_http_parser.c
Compile CNIOOpenSSL empty.c
Compile CNIOAtomics src/c-atomics.c
Compile CSQLite sqlite3.c
Compile Swift Module 'NIOPriorityQueue' (2 sources)
Compile Swift Module 'Debugging' (4 sources)
Compile Swift Module 'Logging' (3 sources)
Compile Swift Module 'COperatingSystem' (1 sources)
Compile Swift Module 'SQL' (27 sources)
Compile Swift Module 'NIOConcurrencyHelpers' (2 sources)
Compile Swift Module 'NIO' (47 sources)
Compile Swift Module 'NIOHTTP1' (7 sources)
Compile Swift Module 'NIOTLS' (3 sources)
Compile Swift Module 'Bits' (11 sources)
Compile Swift Module 'Async' (13 sources)
Compile Swift Module 'NIOOpenSSL' (11 sources)
Compile Swift Module 'Random' (6 sources)
Compile Swift Module 'CodableKit' (25 sources)
Compile Swift Module 'Service' (18 sources)
Compile Swift Module 'Core' (3 sources)
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
^
Toolchain:
/usr/bin/swift
Help:
Join our Slack where hundreds of contributors
are waiting to help: http://vapor.team
Error: Build failed.
You need to run brew install libressl, followed by vapor update. It's a new dependency.
Alternatively, you can just run brew upgrade if vapor cli is already installed.
This will also install libressl.
Now it's swift package update instead of vapor update
Most helpful comment
You need to run
brew install libressl, followed byvapor update. It's a new dependency.