make run failing with swift 3 2016-04-12-a
Closed this issue · 5 comments
Install swift from https://swift.org/builds/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a/swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a-osx.pkg
~/Downloads/Kitura-Sample-master/Kitura-Sample (master)
⛄ $ swift --version
Apple Swift version 3.0-dev (LLVM 752e1430fc, Clang 3987718dae, Swift 36739f7b57)
Target: x86_64-apple-macosx10.9
~/Downloads/Kitura-Sample-master/Kitura-Sample (master)
⛄ $ 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: 347, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 347 (delta 1), reused 0 (delta 0), pack-reused 340
Receiving objects: 100% (347/347), 50.78 KiB | 0 bytes/s, done.
Resolving deltas: 100% (169/169), done.
Checking connectivity... done.
Submodule path 'Kitura-Build': checked out '383498d1d671fef434d0f57fcf82eef8ddea8c85'
--- Running build on Darwin
--- Build scripts directory: Kitura-Build/build
--- Checking swift version
swift --version
Apple Swift version 3.0-dev (LLVM 752e1430fc, Clang 3987718dae, Swift 36739f7b57)
Target: x86_64-apple-macosx10.9
--- Checking git revision and branch
git rev-parse HEAD
f7ecc863958cfcb7790b33840e3037981182c82e
git rev-parse --abbrev-ref HEAD
master
--- Invoking swift build
swift build -Xcc -fblocks -Xswiftc -I/usr/local/include -Xlinker -L/usr/local/lib
Cloning https://github.com/IBM-Swift/Kitura.git
Resolved version: 0.8.0
Cloning https://github.com/IBM-Swift/Kitura-net.git
Resolved version: 0.8.0
Cloning https://github.com/IBM-Swift/Kitura-sys.git
Resolved version: 0.8.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.0.2
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.8.0
Cloning https://github.com/IBM-Swift/GRMustache.swift.git
Resolved version: 1.1.1
Cloning https://github.com/IBM-Swift/Bridging.git
Resolved version: 0.2.0
Compiling Swift Module 'LoggerAPI' (1 sources)
Compiling Swift Module 'SwiftyJSON' (2 sources)
Compiling Swift Module 'Socket' (3 sources)
Compiling Swift Module 'Bridging' (1 sources)
Compiling Swift Module 'KituraTemplateEngine' (1 sources)
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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 {
^~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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 {
^~~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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 {
~~~~~~~~~~ ^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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) {
~~~~ ^
/Users/csantanapr/Downloads/Kitura-Sample-master/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1280:10: error: missing argument label 'set:' in call
fdZero(&readfds)
^
set:
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/Kitura-Sample/Packages/Socket-0.3.5/Sources/Socket.swift:1284:10: error: missing argument label 'set:' in call
fdZero(&writefds)
^
set:
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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:
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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) {
~~~~ ^
/Users/csantanapr/Downloads/Kitura-Sample-master/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 {
~~~~~~ ^
/Users/csantanapr/Downloads/Kitura-Sample-master/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 {
~~~~~~ ^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
!
/Users/csantanapr/Downloads/Kitura-Sample-master/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 {
~~~~~~~~~~~~~~~ ^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
~~~~~^~~~~~~~~~~ ~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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 {
~~~~~~~~~~ ^
/Users/csantanapr/Downloads/Kitura-Sample-master/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 {
~~~~~~~~~~ ^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
^
?
/Users/csantanapr/Downloads/Kitura-Sample-master/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
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
^~~~~~~~~~~~~~~ ~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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 }
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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 }
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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 }
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~~~~~~~^ ~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~^~~~~~~~~~~ ~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~~~~~~~^ ~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~^~~~~~~~~~~ ~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~~~~~~~~~^~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~~~~~~~^ ~~~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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)
^
/Users/csantanapr/Downloads/Kitura-Sample-master/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
~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
/Users/csantanapr/Downloads/Kitura-Sample-master/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-12-a.xctoolchain/usr/bin/swift-build-tool -f /Users/csantanapr/Downloads/Kitura-Sample-master/Kitura-Sample/.build/debug.yaml default
make: *** [build] Error 1
~/Downloads/Kitura-Sample-master/Kitura-Sample (master)
It looks like it works with older build https://swift.org/builds/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a-osx.pkg
Readme should have this information, I know the main repo for Kitura has this info but it will be useful to see it here also.
Hi @csantanapr, we've made some changes recently for Kitura and the samples to work with the 4-25 build. I tried make run
with this build using the develop
branch, and it worked correctly. Are you still seeing this issue?
Hi @kweinmeister I tried with DEVELOPMENT-SNAPSHOT-2016-04-25-a
on master branch and I get an error when I run make run
error: The dependency graph could not be satisfied (https://github.com/IBM-Swift/SwiftyJSON.git)
make: *** [build] Error 1
develop branch works with DEVELOPMENT-SNAPSHOT-2016-04-25-a
I will close this issue and open a new one to track the problem with dependency ``https://github.com/IBM-Swift/Kitura.git'` in master