./wwdc2016.swift:53:42: error: 'NSURLSessionDownloadDelegate' has been renamed to 'URLSessionDownloadDelegate' class DownloadSessionManager : NSObject, NSURLSessionDownloadDelegate { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ URLSessionDownloadDelegate :0: note: 'NSURLSessionDownloadDelegate' was obsoleted in Swift 3 ./wwdc2016.swift:60:21: error: 'dispatch_semaphore_create' has been replaced by 'DispatchSemaphore.init(value:)' let semaphore = dispatch_semaphore_create(0) ^~~~~~~~~~~~~~~~~~~~~~~~~ DispatchSemaphore value: :0: note: 'dispatch_semaphore_create' was obsoleted in Swift 3 ./wwdc2016.swift:61:19: error: 'NSURLSession' has been renamed to 'URLSession' var session : NSURLSession! ^~~~~~~~~~~~ URLSession :0: note: 'NSURLSession' was obsoleted in Swift 3 ./wwdc2016.swift:121:30: error: 'NSURLSession' has been renamed to 'URLSession' func URLSession(session: NSURLSession, ^~~~~~~~~~~~ URLSession :0: note: 'NSURLSession' was obsoleted in Swift 3 ./wwdc2016.swift:122:35: error: 'NSURLSessionDownloadTask' has been renamed to 'URLSessionDownloadTask' downloadTask: NSURLSessionDownloadTask, ^~~~~~~~~~~~~~~~~~~~~~~~ URLSessionDownloadTask :0: note: 'NSURLSessionDownloadTask' was obsoleted in Swift 3 ./wwdc2016.swift:132:30: error: 'NSURLSession' has been renamed to 'URLSession' func URLSession(session: NSURLSession, downloadTask: NSURLSessionDownloadTask, didFinishDownloadingToURL location: NSURL) { ^~~~~~~~~~~~ URLSession :0: note: 'NSURLSession' was obsoleted in Swift 3 ./wwdc2016.swift:132:58: error: 'NSURLSessionDownloadTask' has been renamed to 'URLSessionDownloadTask' func URLSession(session: NSURLSession, downloadTask: NSURLSessionDownloadTask, didFinishDownloadingToURL location: NSURL) { ^~~~~~~~~~~~~~~~~~~~~~~~ URLSessionDownloadTask :0: note: 'NSURLSessionDownloadTask' was obsoleted in Swift 3 ./wwdc2016.swift:156:30: error: 'NSURLSession' has been renamed to 'URLSession' func URLSession(session: NSURLSession, task: NSURLSessionTask, didCompleteWithError error: NSError?) { ^~~~~~~~~~~~ URLSession :0: note: 'NSURLSession' was obsoleted in Swift 3 ./wwdc2016.swift:156:50: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask' func URLSession(session: NSURLSession, task: NSURLSessionTask, didCompleteWithError error: NSError?) { ^~~~~~~~~~~~~~~~ URLSessionTask :0: note: 'NSURLSessionTask' was obsoleted in Swift 3 ./wwdc2016.swift:37:37: error: 'sizeofValue' has been replaced by 'MemoryLayout.size(ofValue:)' zeroAddress.sin_len = UInt8(sizeofValue(zeroAddress)) ^~~~~~~~~~~ MemoryLayout.size ofValue: Swift.sizeofValue:2:13: note: 'sizeofValue' has been explicitly marked unavailable here public func sizeofValue(_: T) -> Int ^ ./wwdc2016.swift:39:40: error: 'withUnsafePointer' has been renamed to 'withUnsafePointer(to:_:)' let defaultRouteReachability = withUnsafePointer(&zeroAddress) { ^~~~~~~~~~~~~~~~~ withUnsafePointer to: Swift.withUnsafePointer:2:13: note: 'withUnsafePointer' has been explicitly marked unavailable here public func withUnsafePointer(_ arg: inout T, _ body: (UnsafePointer) throws -> Result) rethrows -> Result ^ ./wwdc2016.swift:40:57: error: 'init' is unavailable: use 'withMemoryRebound(to:capacity:_)' to temporarily view memory as another layout-compatible type. SCNetworkReachabilityCreateWithAddress(nil, UnsafePointer($0)) ^~~~~~~~~~~~~ Swift.UnsafePointer:7:12: note: 'init' has been explicitly marked unavailable here public init(_ from: UnsafePointer) ^ ./wwdc2016.swift:69:24: error: 'NSURLSession' has been renamed to 'URLSession' self.session = NSURLSession(configuration: NSURLSessionConfiguration.defaultSessionConfiguration(), delegate: self, delegateQueue: nil) ^~~~~~~~~~~~ URLSession :0: note: 'NSURLSession' was obsoleted in Swift 3 ./wwdc2016.swift:79:44: error: cannot convert value of type 'Int' to expected argument type 'dispatch_time_t' (aka 'UInt64') dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER) ^~~~~~~~~~~~~~~~~~~~~ dispatch_time_t( ) ./wwdc2016.swift:91:48: error: cannot convert value of type 'Int' to expected argument type 'dispatch_time_t' (aka 'UInt64') dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER) ^~~~~~~~~~~~~~~~~~~~~ dispatch_time_t( ) ./wwdc2016.swift:127:67: error: 'NSDate' is not implicitly convertible to 'Date'; did you mean to use 'as' to explicitly convert? let timeDownloaded = now.timeIntervalSinceDate(taskStartedAt!); ^ as Date ./wwdc2016.swift:144:27: error: 'NSFileManager' has been renamed to 'FileManager' let fileManager = NSFileManager.defaultManager() ^~~~~~~~~~~~~ FileManager :0: note: 'NSFileManager' was obsoleted in Swift 3 ./wwdc2016.swift:192:29: error: 'matchesInString(_:options:range:)' has been renamed to 'matches(in:options:range:)' let matches = regex.matchesInString(testStr, options: [], range: NSRange(location: 0, length: testStr.characters.count)) ^~~~~~~~~~~~~~~ matches in: :0: note: 'matchesInString(_:options:range:)' was obsoleted in Swift 3 ./wwdc2016.swift:195:36: error: 'rangeAtIndex' has been renamed to 'rangeAt(_:)' let range = matches[0].rangeAtIndex(1) ^~~~~~~~~~~~ rangeAt :0: note: 'rangeAtIndex' was obsoleted in Swift 3 ./wwdc2016.swift:196:40: error: 'advancedBy' is unavailable: To advance an index by n steps call 'index(_:offsetBy:)' on the CharacterView instance that produced the index. let r = testStr.startIndex.advancedBy(range.location) ..< ^~~~~~~~~~ Swift.String.CharacterView.Index:7:17: note: 'advancedBy' has been explicitly marked unavailable here public func advancedBy(_ n: String.CharacterView.IndexDistance) -> String.CharacterView.Index ^ ./wwdc2016.swift:197:36: error: 'advancedBy' is unavailable: To advance an index by n steps call 'index(_:offsetBy:)' on the CharacterView instance that produced the index. testStr.startIndex.advancedBy(range.location+range.length) ^~~~~~~~~~ Swift.String.CharacterView.Index:7:17: note: 'advancedBy' has been explicitly marked unavailable here public func advancedBy(_ n: String.CharacterView.IndexDistance) -> String.CharacterView.Index ^ ./wwdc2016.swift:198:24: error: value of type 'String' has no member 'substringWithRange' videoURL = testStr.substringWithRange(r) ^~~~~~~ ~~~~~~~~~~~~~~~~~~ Foundation.String:77:17: note: did you mean 'substringWith'? public func substringWith(_ aRange: Range) -> String ^ ./wwdc2016.swift:207:29: error: 'matchesInString(_:options:range:)' has been renamed to 'matches(in:options:range:)' let matches = regex.matchesInString(testStr, options: [], range: NSRange(location: 0, length: testStr.characters.count)) ^~~~~~~~~~~~~~~ matches in: :0: note: 'matchesInString(_:options:range:)' was obsoleted in Swift 3 ./wwdc2016.swift:210:36: error: 'rangeAtIndex' has been renamed to 'rangeAt(_:)' let range = matches[0].rangeAtIndex(1) ^~~~~~~~~~~~ rangeAt :0: note: 'rangeAtIndex' was obsoleted in Swift 3 ./wwdc2016.swift:211:40: error: 'advancedBy' is unavailable: To advance an index by n steps call 'index(_:offsetBy:)' on the CharacterView instance that produced the index. let r = testStr.startIndex.advancedBy(range.location) ..< ^~~~~~~~~~ Swift.String.CharacterView.Index:7:17: note: 'advancedBy' has been explicitly marked unavailable here public func advancedBy(_ n: String.CharacterView.IndexDistance) -> String.CharacterView.Index ^ ./wwdc2016.swift:212:36: error: 'advancedBy' is unavailable: To advance an index by n steps call 'index(_:offsetBy:)' on the CharacterView instance that produced the index. testStr.startIndex.advancedBy(range.location+range.length) ^~~~~~~~~~ Swift.String.CharacterView.Index:7:17: note: 'advancedBy' has been explicitly marked unavailable here public func advancedBy(_ n: String.CharacterView.IndexDistance) -> String.CharacterView.Index ^ ./wwdc2016.swift:213:30: error: value of type 'String' has no member 'substringWithRange' pdfResourceURL = testStr.substringWithRange(r) ^~~~~~~ ~~~~~~~~~~~~~~~~~~ Foundation.String:77:17: note: did you mean 'substringWith'? public func substringWith(_ aRange: Range) -> String ^ ./wwdc2016.swift:222:29: error: 'matchesInString(_:options:range:)' has been renamed to 'matches(in:options:range:)' let matches = regex.matchesInString(testStr, options: [], range: NSRange(location: 0, length: testStr.characters.count)) ^~~~~~~~~~~~~~~ matches in: :0: note: 'matchesInString(_:options:range:)' was obsoleted in Swift 3 ./wwdc2016.swift:225:36: error: 'rangeAtIndex' has been renamed to 'rangeAt(_:)' let range = matches[0].rangeAtIndex(1) ^~~~~~~~~~~~ rangeAt :0: note: 'rangeAtIndex' was obsoleted in Swift 3 ./wwdc2016.swift:226:40: error: 'advancedBy' is unavailable: To advance an index by n steps call 'index(_:offsetBy:)' on the CharacterView instance that produced the index. let r = testStr.startIndex.advancedBy(range.location) ..< ^~~~~~~~~~ Swift.String.CharacterView.Index:7:17: note: 'advancedBy' has been explicitly marked unavailable here public func advancedBy(_ n: String.CharacterView.IndexDistance) -> String.CharacterView.Index ^ ./wwdc2016.swift:227:36: error: 'advancedBy' is unavailable: To advance an index by n steps call 'index(_:offsetBy:)' on the CharacterView instance that produced the index. testStr.startIndex.advancedBy(range.location+range.length) ^~~~~~~~~~ Swift.String.CharacterView.Index:7:17: note: 'advancedBy' has been explicitly marked unavailable here public func advancedBy(_ n: String.CharacterView.IndexDistance) -> String.CharacterView.Index ^ ./wwdc2016.swift:228:21: error: value of type 'String' has no member 'substringWithRange' title = testStr.substringWithRange(r) ^~~~~~~ ~~~~~~~~~~~~~~~~~~ Foundation.String:77:17: note: did you mean 'substringWith'? public func substringWith(_ aRange: Range) -> String ^ ./wwdc2016.swift:229:21: error: value of type 'String' has no member 'stringByReplacingOccurrencesOfString' title = title.stringByReplacingOccurrencesOfString("

", withString: "") ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./wwdc2016.swift:230:21: error: value of type 'String' has no member 'stringByReplacingOccurrencesOfString' title = title.stringByReplacingOccurrencesOfString(":0: note: 'matchesInString(_:options:range:)' was obsoleted in Swift 3 ./wwdc2016.swift:242:31: error: 'rangeAtIndex' has been renamed to 'rangeAt(_:)' let range = match.rangeAtIndex(1) ^~~~~~~~~~~~ rangeAt :0: note: 'rangeAtIndex' was obsoleted in Swift 3 ./wwdc2016.swift:243:40: error: 'advancedBy' is unavailable: To advance an index by n steps call 'index(_:offsetBy:)' on the CharacterView instance that produced the index. let r = testStr.startIndex.advancedBy(range.location) ..< ^~~~~~~~~~ Swift.String.CharacterView.Index:7:17: note: 'advancedBy' has been explicitly marked unavailable here public func advancedBy(_ n: String.CharacterView.IndexDistance) -> String.CharacterView.Index ^ ./wwdc2016.swift:244:36: error: 'advancedBy' is unavailable: To advance an index by n steps call 'index(_:offsetBy:)' on the CharacterView instance that produced the index. testStr.startIndex.advancedBy(range.location+range.length) ^~~~~~~~~~ Swift.String.CharacterView.Index:7:17: note: 'advancedBy' has been explicitly marked unavailable here public func advancedBy(_ n: String.CharacterView.IndexDistance) -> String.CharacterView.Index ^ ./wwdc2016.swift:245:24: error: value of type 'String' has no member 'substringWithRange' var path = testStr.substringWithRange(r) ^~~~~~~ ~~~~~~~~~~~~~~~~~~ Foundation.String:77:17: note: did you mean 'substringWith'? public func substringWith(_ aRange: Range) -> String ^ ./wwdc2016.swift:254:52: error: missing argument label 'url:' in call let jsonText = getStringContentFromURL(urlPath + "book.json") as NSString ^ url: ./wwdc2016.swift:256:35: error: 'NSJSONSerialization' has been renamed to 'JSONSerialization' let object = try? NSJSONSerialization.JSONObjectWithData(data, options: .AllowFragments) ^~~~~~~~~~~~~~~~~~~ JSONSerialization :0: note: 'NSJSONSerialization' was obsoleted in Swift 3 ./wwdc2016.swift:282:29: error: 'NSURLSessionConfiguration' has been renamed to 'URLSessionConfiguration' let sessionConfig = NSURLSessionConfiguration.defaultSessionConfiguration() ^~~~~~~~~~~~~~~~~~~~~~~~~ URLSessionConfiguration :0: note: 'NSURLSessionConfiguration' was obsoleted in Swift 3 ./wwdc2016.swift:285:23: error: 'NSURLSession' has been renamed to 'URLSession' let session = NSURLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil) ^~~~~~~~~~~~ URLSession :0: note: 'NSURLSession' was obsoleted in Swift 3 ./wwdc2016.swift:292:48: error: 'NSURL' is not implicitly convertible to 'URL'; did you mean to use 'as' to explicitly convert? let request = NSMutableURLRequest(URL: URL) ^ as URL ./wwdc2016.swift:296:25: error: 'dispatch_semaphore_create' has been replaced by 'DispatchSemaphore.init(value:)' let semaphore = dispatch_semaphore_create(0) ^~~~~~~~~~~~~~~~~~~~~~~~~ DispatchSemaphore value: :0: note: 'dispatch_semaphore_create' was obsoleted in Swift 3 ./wwdc2016.swift:297:104: error: 'NSURLResponse' has been renamed to 'URLResponse' let task = session.dataTaskWithRequest(request, completionHandler: { (data: NSData?, response: NSURLResponse?, error: NSError?) -> Void in ^~~~~~~~~~~~~ URLResponse :0: note: 'NSURLResponse' was obsoleted in Swift 3 ./wwdc2016.swift:312:44: error: cannot convert value of type 'Int' to expected argument type 'dispatch_time_t' (aka 'UInt64') dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER) ^~~~~~~~~~~~~~~~~~~~~ dispatch_time_t( ) ./wwdc2016.swift:319:29: error: 'matchesInString(_:options:range:)' has been renamed to 'matches(in:options:range:)' let matches = regex.matchesInString(htmlSessionList, options: [], range: NSRange(location: 0, length: htmlSessionList.characters.count)) ^~~~~~~~~~~~~~~ matches in: :0: note: 'matchesInString(_:options:range:)' was obsoleted in Swift 3 ./wwdc2016.swift:323:35: error: 'rangeAtIndex' has been renamed to 'rangeAt(_:)' let range = match.rangeAtIndex(n) ^~~~~~~~~~~~ rangeAt :0: note: 'rangeAtIndex' was obsoleted in Swift 3 ./wwdc2016.swift:324:52: error: 'advancedBy' is unavailable: To advance an index by n steps call 'index(_:offsetBy:)' on the CharacterView instance that produced the index. let r = htmlSessionList.startIndex.advancedBy(range.location) ..< ^~~~~~~~~~ Swift.String.CharacterView.Index:7:17: note: 'advancedBy' has been explicitly marked unavailable here public func advancedBy(_ n: String.CharacterView.IndexDistance) -> String.CharacterView.Index ^ ./wwdc2016.swift:325:48: error: 'advancedBy' is unavailable: To advance an index by n steps call 'index(_:offsetBy:)' on the CharacterView instance that produced the index. htmlSessionList.startIndex.advancedBy(range.location+range.length) ^~~~~~~~~~ Swift.String.CharacterView.Index:7:17: note: 'advancedBy' has been explicitly marked unavailable here public func advancedBy(_ n: String.CharacterView.IndexDistance) -> String.CharacterView.Index ^ ./wwdc2016.swift:329:46: error: value of type 'String' has no member 'substringWithRange' sessionsListArray.append(htmlSessionList.substringWithRange(r)) ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ Foundation.String:77:17: note: did you mean 'substringWith'? public func substringWith(_ aRange: Range) -> String ^ ./wwdc2016.swift:339:27: error: 'NSFileManager' has been renamed to 'FileManager' let fileManager = NSFileManager.defaultManager() ^~~~~~~~~~~~~ FileManager :0: note: 'NSFileManager' was obsoleted in Swift 3 ./wwdc2016.swift:134:13: error: 'dispatch_semaphore_signal' has been replaced by instance method 'DispatchSemaphore.signal()' dispatch_semaphore_signal(semaphore) ^~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ semaphore.signal Dispatch.dispatch_semaphore_signal:2:13: note: 'dispatch_semaphore_signal' has been explicitly marked unavailable here public func dispatch_semaphore_signal(_ dsema: DispatchSemaphore) -> Int ^ ./wwdc2016.swift:134:13: warning: result of call to 'dispatch_semaphore_signal' is unused dispatch_semaphore_signal(semaphore) ^ ~~~~~~~~~~~ ./wwdc2016.swift:164:17: error: 'dispatch_semaphore_signal' has been replaced by instance method 'DispatchSemaphore.signal()' dispatch_semaphore_signal(semaphore) ^~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ semaphore.signal Dispatch.dispatch_semaphore_signal:2:13: note: 'dispatch_semaphore_signal' has been explicitly marked unavailable here public func dispatch_semaphore_signal(_ dsema: DispatchSemaphore) -> Int ^ ./wwdc2016.swift:164:17: warning: result of call to 'dispatch_semaphore_signal' is unused dispatch_semaphore_signal(semaphore) ^ ~~~~~~~~~~~ ./wwdc2016.swift:372:17: error: instance member 'arguments' cannot be used on type 'Process' var arguments = Process.arguments ^~~~~~~ ~~~~~~~~~ ./wwdc2016.swift:444:74: error: missing argument label 'url:' in call let htmlSessionListString = wwdcVideosController.getStringContentFromURL("https://developer.apple.com/videos/wwdc2016/") ^ url: ./wwdc2016.swift:437:24: error: value of type 'String' has no member 'substringToIndex' let filteredVal1 = value1.substringToIndex(value1.startIndex.advancedBy(3)) ^~~~~~ ~~~~~~~~~~~~~~~~ ./wwdc2016.swift:438:24: error: value of type 'String' has no member 'substringToIndex' let filteredVal2 = value2.substringToIndex(value2.startIndex.advancedBy(3)) ^~~~~~ ~~~~~~~~~~~~~~~~