/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /Users/USER/Developer/swiftweb/Clones/Starscream/Package.swift /usr/bin/xcrun --sdk macosx --show-sdk-path /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swift-build-tool -v -f /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/llbuild.yaml /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swiftc -module-name Starscream -incremental -emit-dependencies -emit-module -emit-module-path /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.swiftmodule -output-file-map /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/Starscream/output-file-map.json -parse-as-library -c /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift /Users/USER/Developer/swiftweb/Clones/Starscream/Source/WebSocket.swift -I /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug -j8 -Onone -g -v -target x86_64-apple-macosx10.10 -enable-testing -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -I /usr/local/include -D SWIFT_PACKAGE Apple Swift version 3.0-dev (LLVM a7663bb722, Clang 4ca3c7fa28, Swift 1c2f40e246) Target: x86_64-apple-macosx10.10 /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift /Users/USER/Developer/swiftweb/Clones/Starscream/Source/WebSocket.swift -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -I /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug -I /usr/local/include -enable-testing -g -D SWIFT_PACKAGE -emit-module-doc-path /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/Starscream/SSLSecurity~partial.swiftdoc -Onone -parse-as-library -module-name Starscream -emit-module-path /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/Starscream/SSLSecurity~partial.swiftmodule -emit-dependencies-path /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/Starscream/SSLSecurity.d -emit-reference-dependencies-path /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/Starscream/SSLSecurity.swiftdeps -o /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/Source/SSLSecurity.swift.o /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swift -frontend -c /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift -primary-file /Users/USER/Developer/swiftweb/Clones/Starscream/Source/WebSocket.swift -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -I /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug -I /usr/local/include -enable-testing -g -D SWIFT_PACKAGE -emit-module-doc-path /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/Starscream/WebSocket~partial.swiftdoc -Onone -parse-as-library -module-name Starscream -emit-module-path /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/Starscream/WebSocket~partial.swiftmodule -emit-dependencies-path /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/Starscream/WebSocket.d -emit-reference-dependencies-path /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/Starscream/WebSocket.swiftdeps -o /Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/Source/WebSocket.swift.o /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:71:50: error: parameters may not have the 'var' specifier let certs = paths.reduce([SSLCert]()) { (var certs: [SSLCert], path: String) -> [SSLCert] in ^~~ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:94:62: error: parameters may not have the 'var' specifier let pubKeys = certs.reduce([SecKeyRef]()) { (var pubKeys: [SecKeyRef], cert: SSLCert) -> [SecKeyRef] in ^~~ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:108:60: error: parameters may not have the 'var' specifier let certificates = certs.reduce([NSData]()) { (var certificates: [NSData], cert: SSLCert) -> [NSData] in ^~~ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:222:91: error: parameters may not have the 'var' specifier let certificates = (0.. [NSData] in ^~~ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:240:86: error: parameters may not have the 'var' specifier let keys = (0.. [SecKeyRef] in ^~~ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:28:14: warning: 'SecKeyRef' is deprecated: renamed to 'SecKey' var key: SecKeyRef? ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:28:14: note: use 'SecKey' instead var key: SecKeyRef? ^~~~~~~~~ SecKey /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:48:22: warning: 'SecKeyRef' is deprecated: renamed to 'SecKey' public init(key: SecKeyRef) { ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:48:22: note: use 'SecKey' instead public init(key: SecKeyRef) { ^~~~~~~~~ SecKey /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:58:19: warning: 'SecKeyRef' is deprecated: renamed to 'SecKey' var pubKeys: [SecKeyRef]? //the public keys ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:58:19: note: use 'SecKey' instead var pubKeys: [SecKeyRef]? //the public keys ^~~~~~~~~ SecKey /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:127:32: warning: 'SecTrustRef' is deprecated: renamed to 'SecTrust' public func isValid(trust: SecTrustRef, domain: String?) -> Bool { ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:127:32: note: use 'SecTrust' instead public func isValid(trust: SecTrustRef, domain: String?) -> Bool { ^~~~~~~~~~~ SecTrust /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:190:44: warning: 'SecKeyRef' is deprecated: renamed to 'SecKey' func extractPublicKey(data: NSData) -> SecKeyRef? { ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:190:44: note: use 'SecKey' instead func extractPublicKey(data: NSData) -> SecKeyRef? { ^~~~~~~~~ SecKey /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:203:79: warning: 'SecKeyRef' is deprecated: renamed to 'SecKey' func extractPublicKeyFromCert(cert: SecCertificate, policy: SecPolicy) -> SecKeyRef? { ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:203:79: note: use 'SecKey' instead func extractPublicKeyFromCert(cert: SecCertificate, policy: SecPolicy) -> SecKeyRef? { ^~~~~~~~~ SecKey /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:221:42: warning: 'SecTrustRef' is deprecated: renamed to 'SecTrust' func certificateChainForTrust(trust: SecTrustRef) -> [NSData] { ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:221:42: note: use 'SecTrust' instead func certificateChainForTrust(trust: SecTrustRef) -> [NSData] { ^~~~~~~~~~~ SecTrust /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:238:57: warning: 'SecKeyRef' is deprecated: renamed to 'SecKey' func publicKeyChainForTrust(trust: SecTrustRef) -> [SecKeyRef] { ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:238:57: note: use 'SecKey' instead func publicKeyChainForTrust(trust: SecTrustRef) -> [SecKeyRef] { ^~~~~~~~~ SecKey /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:238:40: warning: 'SecTrustRef' is deprecated: renamed to 'SecTrust' func publicKeyChainForTrust(trust: SecTrustRef) -> [SecKeyRef] { ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:238:40: note: use 'SecTrust' instead func publicKeyChainForTrust(trust: SecTrustRef) -> [SecKeyRef] { ^~~~~~~~~~~ SecTrust /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:94:76: warning: 'SecKeyRef' is deprecated: renamed to 'SecKey' let pubKeys = certs.reduce([SecKeyRef]()) { (var pubKeys: [SecKeyRef], cert: SSLCert) -> [SecKeyRef] in ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:94:76: note: use 'SecKey' instead let pubKeys = certs.reduce([SecKeyRef]()) { (var pubKeys: [SecKeyRef], cert: SSLCert) -> [SecKeyRef] in ^~~~~~~~~ SecKey /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:94:107: warning: 'SecKeyRef' is deprecated: renamed to 'SecKey' let pubKeys = certs.reduce([SecKeyRef]()) { (var pubKeys: [SecKeyRef], cert: SSLCert) -> [SecKeyRef] in ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:94:107: note: use 'SecKey' instead let pubKeys = certs.reduce([SecKeyRef]()) { (var pubKeys: [SecKeyRef], cert: SSLCert) -> [SecKeyRef] in ^~~~~~~~~ SecKey /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:94:45: warning: 'SecKeyRef' is deprecated: renamed to 'SecKey' let pubKeys = certs.reduce([SecKeyRef]()) { (var pubKeys: [SecKeyRef], cert: SSLCert) -> [SecKeyRef] in ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:94:45: note: use 'SecKey' instead let pubKeys = certs.reduce([SecKeyRef]()) { (var pubKeys: [SecKeyRef], cert: SSLCert) -> [SecKeyRef] in ^~~~~~~~~ SecKey /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:137:21: warning: 'SecPolicyRef' is deprecated: renamed to 'SecPolicy' var policy: SecPolicyRef ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:137:21: note: use 'SecPolicy' instead var policy: SecPolicyRef ^~~~~~~~~~~~ SecPolicy /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:240:97: warning: 'SecKeyRef' is deprecated: renamed to 'SecKey' let keys = (0.. [SecKeyRef] in ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:240:97: note: use 'SecKey' instead let keys = (0.. [SecKeyRef] in ^~~~~~~~~ SecKey /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:240:125: warning: 'SecKeyRef' is deprecated: renamed to 'SecKey' let keys = (0.. [SecKeyRef] in ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:240:125: note: use 'SecKey' instead let keys = (0.. [SecKeyRef] in ^~~~~~~~~ SecKey /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:240:69: warning: 'SecKeyRef' is deprecated: renamed to 'SecKey' let keys = (0.. [SecKeyRef] in ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:240:69: note: use 'SecKey' instead let keys = (0.. [SecKeyRef] in ^~~~~~~~~ SecKey /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:71:50: error: parameters may not have the 'var' specifier let certs = paths.reduce([SSLCert]()) { (var certs: [SSLCert], path: String) -> [SSLCert] in ^~~ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:94:62: error: parameters may not have the 'var' specifier let pubKeys = certs.reduce([SecKeyRef]()) { (var pubKeys: [SecKeyRef], cert: SSLCert) -> [SecKeyRef] in ^~~ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:108:60: error: parameters may not have the 'var' specifier let certificates = certs.reduce([NSData]()) { (var certificates: [NSData], cert: SSLCert) -> [NSData] in ^~~ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:222:91: error: parameters may not have the 'var' specifier let certificates = (0.. [NSData] in ^~~ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:240:86: error: parameters may not have the 'var' specifier let keys = (0.. [SecKeyRef] in ^~~ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/WebSocket.swift:284:106: warning: 'SSLContextRef' is deprecated: renamed to 'SSLContext' if let sslContextIn = CFReadStreamCopyProperty(inputStream, kCFStreamPropertySSLContext) as! SSLContextRef?, ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/WebSocket.swift:284:106: note: use 'SSLContext' instead if let sslContextIn = CFReadStreamCopyProperty(inputStream, kCFStreamPropertySSLContext) as! SSLContextRef?, ^~~~~~~~~~~~~ SSLContext /Users/USER/Developer/swiftweb/Clones/Starscream/Source/WebSocket.swift:285:109: warning: 'SSLContextRef' is deprecated: renamed to 'SSLContext' sslContextOut = CFWriteStreamCopyProperty(outputStream, kCFStreamPropertySSLContext) as! SSLContextRef? { ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/WebSocket.swift:285:109: note: use 'SSLContext' instead sslContextOut = CFWriteStreamCopyProperty(outputStream, kCFStreamPropertySSLContext) as! SSLContextRef? { ^~~~~~~~~~~~~ SSLContext /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:127:32: warning: 'SecTrustRef' is deprecated: renamed to 'SecTrust' public func isValid(trust: SecTrustRef, domain: String?) -> Bool { ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/SSLSecurity.swift:127:32: note: use 'SecTrust' instead public func isValid(trust: SecTrustRef, domain: String?) -> Bool { ^~~~~~~~~~~ SecTrust /Users/USER/Developer/swiftweb/Clones/Starscream/Source/WebSocket.swift:333:42: warning: 'SecTrustRef' is deprecated: renamed to 'SecTrust' if sec.isValid(trust as! SecTrustRef, domain: domain as! String?) { ^ /Users/USER/Developer/swiftweb/Clones/Starscream/Source/WebSocket.swift:333:42: note: use 'SecTrust' instead if sec.isValid(trust as! SecTrustRef, domain: domain as! String?) { ^~~~~~~~~~~ SecTrust :0: error: build had 1 command failures swift-build: error: exit(1): ["/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swift-build-tool", "-v", "-f", "/Users/USER/Developer/swiftweb/Clones/Starscream/.build/debug/Starscream.o/llbuild.yaml"]