make run not working with Xcode 8 beta 3, please check
satheeshwaran opened this issue · 5 comments
Compile CHTTPParser utils.c
Compile CHTTPParser http_parser.c
Compile Swift Module 'SwiftyJSON' (2 sources)
Compile Swift Module 'KituraTemplateEngine' (1 sources)
Compile Swift Module 'LoggerAPI' (1 sources)
Compile Swift Module 'Socket' (3 sources)
Compile Swift Module 'KituraSys' (3 sources)
Compile Swift Module 'HeliumLogger' (1 sources)
Linking CHTTPParser
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/SwiftyJSON-10.0.2/Source/SwiftyJSON.swift:1198:35: warning: expected ',' joining parts of a multi-clause condition
if let errorValue = error where errorValue.code == ErrorNotExist{
^~~~~
,
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/SwiftyJSON-10.0.2/Source/SwiftyJSON.swift:1155:57: error: cannot call value of non-function type 'NSDecimalNumber'
if decimal == NSDecimalNumber.notANumber() { // indicates parse error
~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/SwiftyJSON-10.0.2/Source/SwiftyJSON.swift:1156:48: error: cannot call value of non-function type 'NSDecimalNumber'
return NSDecimalNumber.zero()
~~~~~~~~~~~~~~~~~~~~^~
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Socket-0.6.2/Sources/Socket.swift:621:29: warning: expected ',' joining parts of a multi-clause condition
guard let sig = signature where isListening else {
^~~~~
,
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Socket-0.6.2/Sources/Socket.swift:645:29: warning: expected ',' joining parts of a multi-clause condition
guard let sig = signature where sig.port != Socket.SOCKET_INVALID_PORT else {
^~~~~
,
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Socket-0.6.2/Sources/Socket.swift:1474:5: warning: expected ',' joining parts of a multi-clause condition
where signature.port != Socket.SOCKET_INVALID_PORT else {
^~~~~
,
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Socket-0.6.2/Sources/Socket.swift:1816:5: warning: expected ',' joining parts of a multi-clause condition
where rc > 0 else {
^~~~~
,
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Socket-0.6.2/Sources/Socket.swift:1824:5: warning: expected ',' joining parts of a multi-clause condition
where rc > 0 else {
^~~~~
,
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Socket-0.6.2/Sources/Socket.swift:1903:34: warning: expected ',' joining parts of a multi-clause condition
guard let sig = self.signature where sig.proto == .udp else {
^~~~~
,
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Socket-0.6.2/Sources/Socket.swift:1940:34: warning: expected ',' joining parts of a multi-clause condition
guard let sig = self.signature where sig.proto == .udp else {
^~~~~
,
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Socket-0.6.2/Sources/Socket.swift:2119:34: warning: expected ',' joining parts of a multi-clause condition
guard let sig = self.signature where sig.proto == .udp else {
^~~~~
,
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Socket-0.6.2/Sources/Socket.swift:2142:34: warning: expected ',' joining parts of a multi-clause condition
guard let sig = self.signature where sig.proto == .udp else {
^~~~~
,
:0: error: build had 1 command failures
error: exit(1): /Applications/Xcode-8-Beta-3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/.build/debug.yaml
make: *** [build] Error 1
Tried to fix few issues but a lot of others open up,
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Kitura-0.24.0/Sources/Kitura/FileResourceServer.swift:40:50: error: cannot call value of non-function type 'FileManager'
let fileManager = FileManager.default()
~~~~~~~~~~~~~~~~~~~^~
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Kitura-0.24.0/Sources/Kitura/MimeTypeAcceptor.swift:51:53: warning: expected 'let' in conditional
if let q = qualityComponents.first, value = qualityComponents.last where q == "q",
^
let
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Kitura-0.24.0/Sources/Kitura/MimeTypeAcceptor.swift:51:84: warning: expected ',' joining parts of a multi-clause condition
if let q = qualityComponents.first, value = qualityComponents.last where q == "q",
^~~~~
,
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Kitura-0.24.0/Sources/Kitura/MimeTypeAcceptor.swift:42:81: error: cannot call value of non-function type 'CharacterSet'
let trimmed = type.trimmingCharacters(in: NSCharacterSet.whitespaces())
~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Kitura-0.24.0/Sources/Kitura/bodyParser/BodyParser.swift:86:13: warning: expected ',' joining parts of a multi-clause condition
where contentType.hasPrefix("text/") {
^~~~~
,
/Users/satheeshwaran/Documents/Personal/kitura/Kitura-Sample/Packages/Kitura-0.24.0/Sources/Kitura/staticFileServer/FileServer.swift:138:93: error: cannot convert value of type '[FileAttributeKey : AnyObject]' to specified type 'CustomResponseHeaderAttributes' (aka 'Dictionary<String, AnyObject>')
let fileAttributes : CustomResponseHeaderAttributes = try FileManagerType().attributesOfItem(atPath: filePath)
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:0: error: build had 1 command failures
:-( :-(
@satheeshwaran You are using a version of Swift which is incompatible with Kitura. The current version is DEVELOPMENT-SNAPSHOT-2016-06-20-a, see .swift-version file.
I did not make any changes to the Swift version, I just cloned your repo and tried to make run.
Please follow the installation instructions at https://github.com/IBM-Swift/Kitura#macos - thanks!
Used swiftenv to install the recommended version of swift like below,
swiftenv install DEVELOPMENT-SNAPSHOT-2016-06-20-a
Hope it helps somebody!!