Kitura/Kitura-Sample

Cannot compile for 2016-04-25 snapshot of Swift

Closed this issue · 9 comments

most of the SwiftyJSON module cannot be compiled with the new version of Swift. ( 2016-04-25 snapshot)

it also seems that you are a couple version behind in packages for dependencies

Can you elaborate on this? The head of the develop branch uses SwiftyJSON v6.1 and compiles with the 2016-04-25 snapshot.

@dfirsht I have checked in all the decencies but it seems that using all stable releases someone is pointing to v5.0 of SwiftyJSON. I think that the problem is that one and for that very reason both @frogcjn and me are experiencing this issue when we tried to compile a previously working project

Is this on the master branch? The master branch of Kitura-Sample points to the master branch of Kitura which only runs on the 03-24 snapshot.

I can't test it anymore because I was forced to move to 04-25 to have it working, I can give a try downloading a previous version of my docker

I think there is something wrong with Package.swift in some dependences.
This is my Terminal output.

xsMacBook:SwiftServer-Kitura x$ git clone https://github.com/IBM-Swift/Kitura-Sample.git && cd Kitura-Sample
Cloning into 'Kitura-Sample'...
remote: Counting objects: 429, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 429 (delta 0), reused 0 (delta 0), pack-reused 425
Receiving objects: 100% (429/429), 59.38 KiB | 60.00 KiB/s, done.
Resolving deltas: 100% (163/163), done.
Checking connectivity... done.

and then,

xsMacBook:Kitura-Sample x$ make run
--- Fetching Kitura-Build submodule
git submodule init
Submodule 'Kitura-Build' (https://github.com/IBM-Swift/Kitura-Build.git) registered for path 'Kitura-Build'
git submodule update --remote --merge
Cloning into 'Kitura-Build'...
remote: Counting objects: 382, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 382 (delta 0), reused 0 (delta 0), pack-reused 378
Receiving objects: 100% (382/382), 54.45 KiB | 46.00 KiB/s, done.
Resolving deltas: 100% (192/192), done.
Checking connectivity... done.
Submodule path 'Kitura-Build': checked out 'e198d8f5038b5b8ba423927e651cd0479ee8b625'
--- Running build on Darwin
--- Build scripts directory: Kitura-Build/build
--- Checking swift version
swift --version
Apple Swift version 3.0-dev (LLVM 752e1430fc, Clang 1e6cba3ce3, Swift 56052cfe61)
Target: x86_64-apple-macosx10.9
--- Checking swiftc version
swiftc --version
Apple Swift version 3.0-dev (LLVM 752e1430fc, Clang 1e6cba3ce3, Swift 56052cfe61)
Target: x86_64-apple-macosx10.9
--- Checking git revision and branch
git rev-parse HEAD
84199d5d7ec86a08402f2840295c7fbe0e28e78c
git rev-parse --abbrev-ref HEAD
master
--- Invoking swift build
swift build -Xswiftc -I/usr/local/include -Xlinker -L/usr/local/lib
Cloning https://github.com/IBM-Swift/Kitura.git
Resolved version: 0.10.0
Cloning https://github.com/IBM-Swift/Kitura-net.git
Resolved version: 0.10.0
Cloning https://github.com/IBM-Swift/Kitura-sys.git
Resolved version: 0.10.0
Cloning https://github.com/IBM-Swift/LoggerAPI.git
Resolved version: 0.4.0
Cloning https://github.com/IBM-Swift/BlueSocket.git
Resolved version: 0.3.5
Cloning https://github.com/IBM-Swift/CCurl.git
Resolved version: 0.0.1
Cloning https://github.com/IBM-Swift/CHttpParser.git
Resolved version: 0.0.2
Cloning https://github.com/IBM-Swift/SwiftyJSON.git
Resolved version: 5.0.0
Cloning https://github.com/IBM-Swift/Kitura-TemplateEngine.git
Resolved version: 0.10.0
Cloning https://github.com/IBM-Swift/HeliumLogger.git
Resolved version: 0.4.3
Cloning https://github.com/IBM-Swift/Kitura-MustacheTemplateEngine.git
Resolved version: 0.10.0
Cloning https://github.com/IBM-Swift/GRMustache.swift.git
warning: unable to rmdir Tests/vendor/groue/GRMustacheSpec: Directory not empty
Resolved version: 1.1.1
Cloning https://github.com/IBM-Swift/Bridging.git
Resolved version: 0.2.0
Compile Swift Module 'LoggerAPI' (1 sources)
Compile Swift Module 'Socket' (3 sources)
Compile Swift Module 'SwiftyJSON' (2 sources)
Compile Swift Module 'KituraTemplateEngine' (1 sources)
Compile Swift Module 'Bridging' (1 sources)
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/LoggerAPI-0.4.0/Sources/LoggerAPI/Logger.swift:39:24: error: missing argument label 'type:' in call
            logger?.log( .Verbose, msg: msg,
                       ^
                         type: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/LoggerAPI-0.4.0/Sources/LoggerAPI/Logger.swift:45:24: error: missing argument label 'type:' in call
            logger?.log( .Info, msg: msg,
                       ^
                         type: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/LoggerAPI-0.4.0/Sources/LoggerAPI/Logger.swift:51:24: error: missing argument label 'type:' in call
            logger?.log( .Warning, msg: msg,
                       ^
                         type: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/LoggerAPI-0.4.0/Sources/LoggerAPI/Logger.swift:57:24: error: missing argument label 'type:' in call
            logger?.log( .Error, msg: msg,
                       ^
                         type: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/LoggerAPI-0.4.0/Sources/LoggerAPI/Logger.swift:63:24: error: missing argument label 'type:' in call
            logger?.log( .Warning, msg: msg,
                       ^
                         type: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:645:35: warning: extraneous duplicate parameter name; 'family' already has an argument label
        public class func makeConfigured(family family: ProtocolFamily, type: SocketType, proto: SocketProtocol) throws -> Socket {
                                         ^~~~~~~

~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:680:29: warning: extraneous duplicate parameter name; 'nativeHandle' already has an argument label
        public class func makeFrom(nativeHandle nativeHandle: Int32, address: Address?) throws -> Socket {
                                   ^~~~~~~~~~~~~

~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:346:48: error: missing argument label 'value:' in call
                        guard let family = ProtocolFamily.getFamily(protocolFamily),
                                                                    ^
                                                                    value: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:347:35: error: missing argument label 'value:' in call
                                let type = SocketType.getType(socketType),
                                                              ^
                                                              value: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:348:42: error: missing argument label 'value:' in call
                                let pro = SocketProtocol.getProtocol(proto) else {
                                                                     ^
                                                                     value: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:407:48: error: missing argument label 'value:' in call
                        guard let family = ProtocolFamily.getFamily(protocolFamily),
                                                                    ^
                                                                    value: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:408:35: error: missing argument label 'value:' in call
                                let type = SocketType.getType(socketType),
                                                              ^
                                                              value: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:409:42: error: missing argument label 'value:' in call
                                let pro = SocketProtocol.getProtocol(proto),
                                                                     ^
                                                                     value: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:535:19: error: value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') can never be nil, comparison isn't allowed
                                if readBuffer != nil {
                                   ~~~~~~~~~~ ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1103:63: error: cannot pass immutable value as inout argument: implicit conversion from 'UnsafeMutablePointer<addrinfo>' to 'UnsafeMutablePointer<addrinfo>?' requires a temporary
                var status: Int32 = getaddrinfo(host, String(port), &hints, &targetInfo)
                                                                            ^~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1126:15: error: value of type 'UnsafeMutablePointer<addrinfo>' can never be nil, comparison isn't allowed
                while (info != nil) {
                       ~~~~ ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1280:10: error: missing argument label 'set:' in call
                fdZero(&readfds)
                       ^
                       set: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1281:8: error: missing argument label 'fd:' in call
                fdSet(self.socketfd, set: &readfds)
                     ^
                      fd: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1284:10: error: missing argument label 'set:' in call
                fdZero(&writefds)
                       ^
                       set: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1285:8: error: missing argument label 'fd:' in call
                fdSet(self.socketfd, set: &writefds)
                     ^
                      fd: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1300:18: error: missing argument label 'fd:' in call
                return (fdIsSet(self.socketfd, set: &readfds), fdIsSet(self.socketfd, set: &writefds))
                               ^
                                fd: 
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1372:62: error: cannot pass immutable value as inout argument: implicit conversion from 'UnsafeMutablePointer<addrinfo>' to 'UnsafeMutablePointer<addrinfo>?' requires a temporary
                let status: Int32 = getaddrinfo(nil, String(port), &hints, &targetInfo)
                                                                           ^~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1394:15: error: value of type 'UnsafeMutablePointer<addrinfo>' can never be nil, comparison isn't allowed
                while (info != nil) {
                       ~~~~ ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1479:13: error: value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') can never be nil, comparison isn't allowed
                if buffer == nil || bufSize == 0 {
                   ~~~~~~ ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1634:13: error: value of type 'UnsafePointer<Void>' (aka 'UnsafePointer<()>') can never be nil, comparison isn't allowed
                if buffer == nil || bufSize == 0 {
                   ~~~~~~ ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1728:28: error: value of optional type 'UnsafePointer<CodeUnit>?' not unwrapped; did you mean to use '!' or '?'?
                        try self.write(from: $0.baseAddress, bufSize: $0.count-1)
                                                ^
                                                           !
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1773:22: error: value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') can never be nil, comparison isn't allowed
                if self.readBuffer != nil {
                   ~~~~~~~~~~~~~~~ ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1806:10: error: value of type 'NSMutableData' has no member 'appendBytes'
                                self.readStorage.appendBytes(self.readBuffer, length: count)
                                ~~~~~^~~~~~~~~~~ ~~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1118:18: error: value of type 'UnsafeMutablePointer<addrinfo>' can never be nil, comparison isn't allowed
                        if targetInfo != nil {
                           ~~~~~~~~~~ ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1387:18: error: value of type 'UnsafeMutablePointer<addrinfo>' can never be nil, comparison isn't allowed
                        if targetInfo != nil {
                           ~~~~~~~~~~ ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1665:26: error: 'init(bool:)' is unavailable in Swift
private let trueNumber = NSNumber(bool: true)
                         ^~~~~~~~
Foundation.NSNumber:63:30: note: 'init(bool:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(bool value: Bool)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1666:27: error: 'init(bool:)' is unavailable in Swift
private let falseNumber = NSNumber(bool: false)
                          ^~~~~~~~
Foundation.NSNumber:63:30: note: 'init(bool:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(bool value: Bool)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:84:17: error: value of optional type 'NSErrorPointer' (aka 'Optional<AutoreleasingUnsafeMutablePointer<Optional<NSError>>>') not unwrapped; did you mean to use '!' or '?'?
                error.pointee = aError
                ^
                     ?
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:100:27: error: incorrect argument label in call (have 'usingEncoding:', expected 'using:')
        return string.data(usingEncoding: NSUTF8StringEncoding).flatMap({JSON(data: $0)}) ?? JSON(NSNull())
                          ^~~~~~~~~~~~~~
                           using
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1080:31: error: 'init(bool:)' is unavailable in Swift
                self.object = NSNumber(bool: newValue)
                              ^~~~~~~~
Foundation.NSNumber:63:30: note: 'init(bool:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(bool value: Bool)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1116:27: error: 'init(bool:)' is unavailable in Swift
            self.object = NSNumber(bool: newValue)
                          ^~~~~~~~
Foundation.NSNumber:63:30: note: 'init(bool:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(bool value: Bool)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1211:31: error: type 'NSDecimalNumber' has no member 'notA'
                if decimal == NSDecimalNumber.notA() {  // indicates parse error
                              ^~~~~~~~~~~~~~~ ~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1217:52: error: 'init(int:)' is unavailable in Swift
                return self.object as? NSNumber ?? NSNumber(int: 0)
                                                   ^~~~~~~~
Foundation.NSNumber:23:30: note: 'init(int:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(int value: Int32)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1219:24: error: 'init(double:)' is unavailable in Swift
                return NSNumber(double: 0.0)
                       ^~~~~~~~
Foundation.NSNumber:58:30: note: 'init(double:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(double value: Double)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1295:31: error: 'init(double:)' is unavailable in Swift
                self.object = NSNumber(double: newValue)
                              ^~~~~~~~
Foundation.NSNumber:58:30: note: 'init(double:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(double value: Double)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1307:27: error: 'init(double:)' is unavailable in Swift
            self.object = NSNumber(double: newValue)
                          ^~~~~~~~
Foundation.NSNumber:58:30: note: 'init(double:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(double value: Double)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1317:31: error: 'init(float:)' is unavailable in Swift
                self.object = NSNumber(float: newValue)
                              ^~~~~~~~
Foundation.NSNumber:53:30: note: 'init(float:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(float value: Float)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1329:27: error: 'init(float:)' is unavailable in Swift
            self.object = NSNumber(float: newValue)
                          ^~~~~~~~
Foundation.NSNumber:53:30: note: 'init(float:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(float value: Float)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1335:33: error: 'longValue' is unavailable in Swift
            return self.number?.longValue
                                ^~~~~~~~~
Foundation.NSNumber:30:16: note: 'longValue' has been explicitly marked unavailable here
    public var longValue: Int { get }
               ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1339:31: error: 'init(integer:)' is unavailable in Swift
                self.object = NSNumber(integer: newValue)
                              ^~~~~~~~
Foundation.NSNumber:69:30: note: 'init(integer:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(integer value: Int)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1348:25: error: value of type 'NSNumber' has no member 'integerValue'
            return self.numberValue.integerValue
                   ~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1351:27: error: 'init(integer:)' is unavailable in Swift
            self.object = NSNumber(integer: newValue)
                          ^~~~~~~~
Foundation.NSNumber:69:30: note: 'init(integer:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(integer value: Int)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1357:33: error: 'unsignedLongValue' is unavailable in Swift
            return self.number?.unsignedLongValue
                                ^~~~~~~~~~~~~~~~~
Foundation.NSNumber:32:16: note: 'unsignedLongValue' has been explicitly marked unavailable here
    public var unsignedLongValue: UInt { get }
               ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1361:31: error: 'init(unsignedLong:)' is unavailable in Swift
                self.object = NSNumber(unsignedLong: newValue)
                              ^~~~~~~~
Foundation.NSNumber:13:12: note: 'init(unsignedLong:)' has been explicitly marked unavailable here
    public init(unsignedLong value: UInt)
           ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1370:37: error: 'unsignedLongValue' is unavailable in Swift
            return self.numberValue.unsignedLongValue
                                    ^~~~~~~~~~~~~~~~~
Foundation.NSNumber:32:16: note: 'unsignedLongValue' has been explicitly marked unavailable here
    public var unsignedLongValue: UInt { get }
               ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1373:27: error: 'init(unsignedLong:)' is unavailable in Swift
            self.object = NSNumber(unsignedLong: newValue)
                          ^~~~~~~~
Foundation.NSNumber:13:12: note: 'init(unsignedLong:)' has been explicitly marked unavailable here
    public init(unsignedLong value: UInt)
           ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1379:31: error: value of type 'NSNumber' has no member 'charValue'
            return self.number?.charValue
                   ~~~~~~~~~~~^ ~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1383:31: error: 'init(char:)' is unavailable in Swift
                self.object = NSNumber(char: newValue)
                              ^~~~~~~~
Foundation.NSNumber:3:30: note: 'init(char:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(char value: Int8)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1392:25: error: value of type 'NSNumber' has no member 'charValue'
            return self.numberValue.charValue
                   ~~~~~^~~~~~~~~~~ ~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1395:27: error: 'init(char:)' is unavailable in Swift
            self.object = NSNumber(char: newValue)
                          ^~~~~~~~
Foundation.NSNumber:3:30: note: 'init(char:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(char value: Int8)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1401:31: error: value of type 'NSNumber' has no member 'unsignedCharValue'
            return self.number?.unsignedCharValue
                   ~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1405:31: error: 'init(unsignedChar:)' is unavailable in Swift
                self.object = NSNumber(unsignedChar: newValue)
                              ^~~~~~~~
Foundation.NSNumber:8:30: note: 'init(unsignedChar:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(unsignedChar value: UInt8)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1414:25: error: value of type 'NSNumber' has no member 'unsignedCharValue'
            return self.numberValue.unsignedCharValue
                   ~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1417:27: error: 'init(unsignedChar:)' is unavailable in Swift
            self.object = NSNumber(unsignedChar: newValue)
                          ^~~~~~~~
Foundation.NSNumber:8:30: note: 'init(unsignedChar:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(unsignedChar value: UInt8)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1423:31: error: value of type 'NSNumber' has no member 'shortValue'
            return self.number?.shortValue
                   ~~~~~~~~~~~^ ~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1427:31: error: 'init(short:)' is unavailable in Swift
                self.object = NSNumber(short: newValue)
                              ^~~~~~~~
Foundation.NSNumber:13:30: note: 'init(short:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(short value: Int16)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1436:25: error: value of type 'NSNumber' has no member 'shortValue'
            return self.numberValue.shortValue
                   ~~~~~^~~~~~~~~~~ ~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1439:27: error: 'init(short:)' is unavailable in Swift
            self.object = NSNumber(short: newValue)
                          ^~~~~~~~
Foundation.NSNumber:13:30: note: 'init(short:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(short value: Int16)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1445:31: error: value of type 'NSNumber' has no member 'unsignedShortValue'
            return self.number?.unsignedShortValue
                   ~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1449:31: error: 'init(unsignedShort:)' is unavailable in Swift
                self.object = NSNumber(unsignedShort: newValue)
                              ^~~~~~~~
Foundation.NSNumber:18:30: note: 'init(unsignedShort:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(unsignedShort value: UInt16)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1458:25: error: value of type 'NSNumber' has no member 'unsignedShortValue'
            return self.numberValue.unsignedShortValue
                   ~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1461:27: error: 'init(unsignedShort:)' is unavailable in Swift
            self.object = NSNumber(unsignedShort: newValue)
                          ^~~~~~~~
Foundation.NSNumber:18:30: note: 'init(unsignedShort:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(unsignedShort value: UInt16)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1467:33: error: cannot convert return expression of type 'Int?' to return type 'Int32?'
            return self.number?.intValue
                   ~~~~~~~~~~~~~^~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1471:31: error: 'init(int:)' is unavailable in Swift
                self.object = NSNumber(int: newValue)
                              ^~~~~~~~
Foundation.NSNumber:23:30: note: 'init(int:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(int value: Int32)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1480:37: error: cannot convert return expression of type 'Int' to return type 'Int32'
            return self.numberValue.intValue
                   ~~~~~~~~~~~~~~~~~^~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1483:27: error: 'init(int:)' is unavailable in Swift
            self.object = NSNumber(int: newValue)
                          ^~~~~~~~
Foundation.NSNumber:23:30: note: 'init(int:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(int value: Int32)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1489:31: error: value of type 'NSNumber' has no member 'unsignedIntValue'
            return self.number?.unsignedIntValue
                   ~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1493:31: error: 'init(unsignedInt:)' is unavailable in Swift
                self.object = NSNumber(unsignedInt: newValue)
                              ^~~~~~~~
Foundation.NSNumber:28:30: note: 'init(unsignedInt:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(unsignedInt value: UInt32)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1502:25: error: value of type 'NSNumber' has no member 'unsignedIntValue'
            return self.numberValue.unsignedIntValue
                   ~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1505:27: error: 'init(unsignedInt:)' is unavailable in Swift
            self.object = NSNumber(unsignedInt: newValue)
                          ^~~~~~~~
Foundation.NSNumber:28:30: note: 'init(unsignedInt:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(unsignedInt value: UInt32)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1511:31: error: value of type 'NSNumber' has no member 'longLongValue'
            return self.number?.longLongValue
                   ~~~~~~~~~~~^ ~~~~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1515:31: error: 'init(longLong:)' is unavailable in Swift
                self.object = NSNumber(longLong: newValue)
                              ^~~~~~~~
Foundation.NSNumber:43:30: note: 'init(longLong:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(longLong value: Int64)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1524:25: error: value of type 'NSNumber' has no member 'longLongValue'
            return self.numberValue.longLongValue
                   ~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1527:27: error: 'init(longLong:)' is unavailable in Swift
            self.object = NSNumber(longLong: newValue)
                          ^~~~~~~~
Foundation.NSNumber:43:30: note: 'init(longLong:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(longLong value: Int64)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1533:31: error: value of type 'NSNumber' has no member 'unsignedLongLongValue'
            return self.number?.unsignedLongLongValue
                   ~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1537:31: error: 'init(unsignedLongLong:)' is unavailable in Swift
                self.object = NSNumber(unsignedLongLong: newValue)
                              ^~~~~~~~
Foundation.NSNumber:48:30: note: 'init(unsignedLongLong:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(unsignedLongLong value: UInt64)
                             ^
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1546:25: error: value of type 'NSNumber' has no member 'unsignedLongLongValue'
            return self.numberValue.unsignedLongLongValue
                   ~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
~Files/Projects/SwiftServer-Kitura/Kitura-Sample/Packages/SwiftyJSON-5.0.0/Source/SwiftyJSON.swift:1549:27: error: 'init(unsignedLongLong:)' is unavailable in Swift
            self.object = NSNumber(unsignedLongLong: newValue)
                          ^~~~~~~~
Foundation.NSNumber:48:30: note: 'init(unsignedLongLong:)' has been explicitly marked unavailable here
    public /*not inherited*/ init(unsignedLongLong value: UInt64)
                             ^
<unknown>:0: error: build had 3 command failures
error: exit(1): /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-04-25-a.xctoolchain/usr/bin/swift-build-tool -f ~Files/Projects/SwiftServer-Kitura/Kitura-Sample/.build/debug.yaml
make: *** [build] Error 1
xsMacBook:Kitura-Sample x$ 

@frogcjn Looking at the log it seems that you are trying to compile the master branch with the 04-25 snapshot. Please run git checkout develop to switch to the develop branch. You'll also need to delete your Packages directory.

@dfirsht After switching to develop branch,git clone https://github.com/IBM-Swift/Kitura-Sample.git -b develop && cd Kitura-Sample, it is working. Thanks!

moving to kitura 0.11 fixed my issue, @frogcjn feel free to close this issue