Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building dependencies with Swift 2.3 rather than Swift 3 when using Xcode 8 Beta #1351

Closed
iliaskarim opened this issue Jun 16, 2016 · 10 comments

Comments

Projects
None yet
8 participants
@iliaskarim
Copy link

commented Jun 16, 2016

How do I build dependencies with Swift 2.3 rather than Swift 3 when using Xcode 8 Beta?

I wasn't able to find a solution by searching so I thought I'd open an issue. Thanks in advance for any assistance!

  • carthage version: 0.16.2
  • xcodebuild -version: Xcode 8.0 (Build version 8S128d)
  • Are you using --no-build? no
  • Are you using --no-use-binaries? no
  • Are you using --use-submodules? no

Cartfile

github "Alamofire/AlamofireImage" ~> 2.0

Carthage Output

Carthage/Checkouts/Alamofire/Source/Error.swift:61:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/Error.swift:61:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/Error.swift:74:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/Error.swift:74:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/MultipartFormData.swift:579:44: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead
Carthage/Checkouts/Alamofire/Source/Response.swift:28:38: error: 'ErrorType' has been renamed to 'ErrorProtocol'
Carthage/Checkouts/Alamofire/Source/ServerTrustPolicy.swift:65:11: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:45: error: 'NSURLSessionDelegate' has been renamed to 'URLSessionDelegate'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:67: error: 'NSURLSessionTaskDelegate' has been renamed to 'URLSessionTaskDelegate'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:93: error: 'NSURLSessionDataDelegate' has been renamed to 'URLSessionDataDelegate'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:119: error: 'NSURLSessionDownloadDelegate' has been renamed to 'URLSessionDownloadDelegate'
Carthage/Checkouts/Alamofire/Source/Result.swift:35:34: error: 'ErrorType' has been renamed to 'ErrorProtocol'
Carthage/Checkouts/Alamofire/Source/Timeline.swift:42:25: error: 'NSTimeInterval' has been renamed to 'TimeInterval'
Carthage/Checkouts/Alamofire/Source/Timeline.swift:45:33: error: 'NSTimeInterval' has been renamed to 'TimeInterval'
Carthage/Checkouts/Alamofire/Source/Timeline.swift:48:39: error: 'NSTimeInterval' has been renamed to 'TimeInterval'
Carthage/Checkouts/Alamofire/Source/Timeline.swift:51:31: error: 'NSTimeInterval' has been renamed to 'TimeInterval'
Carthage/Checkouts/Alamofire/Source/Error.swift:61:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/Error.swift:61:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/Error.swift:74:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/Error.swift:74:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/MultipartFormData.swift:579:44: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead
Carthage/Checkouts/Alamofire/Source/Response.swift:28:38: error: 'ErrorType' has been renamed to 'ErrorProtocol'
Carthage/Checkouts/Alamofire/Source/ServerTrustPolicy.swift:65:11: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:45: error: 'NSURLSessionDelegate' has been renamed to 'URLSessionDelegate'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:67: error: 'NSURLSessionTaskDelegate' has been renamed to 'URLSessionTaskDelegate'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:93: error: 'NSURLSessionDataDelegate' has been renamed to 'URLSessionDataDelegate'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:119: error: 'NSURLSessionDownloadDelegate' has been renamed to 'URLSessionDownloadDelegate'
Carthage/Checkouts/Alamofire/Source/Result.swift:35:34: error: 'ErrorType' has been renamed to 'ErrorProtocol'
Carthage/Checkouts/Alamofire/Source/Upload.swift:31:35: error: 'NSInputStream' has been renamed to 'InputStream'
Carthage/Checkouts/Alamofire/Source/Upload.swift:163:67: error: 'NSInputStream' has been renamed to 'InputStream'
Carthage/Checkouts/Alamofire/Source/Upload.swift:183:17: error: 'NSInputStream' has been renamed to 'InputStream'
Carthage/Checkouts/Alamofire/Source/Upload.swift:240:28: warning: single argument function types require parentheses
Carthage/Checkouts/Alamofire/Source/Upload.swift:242:30: warning: single argument function types require parentheses
Carthage/Checkouts/Alamofire/Source/Upload.swift:280:28: warning: single argument function types require parentheses
Carthage/Checkouts/Alamofire/Source/Upload.swift:282:30: warning: single argument function types require parentheses
Carthage/Checkouts/Alamofire/Source/Upload.swift:207:22: error: 'ErrorType' has been renamed to 'ErrorProtocol'
Carthage/Checkouts/Alamofire/Source/Request.swift:355:43: error: 'NSURLSessionDataDelegate' has been renamed to 'URLSessionDataDelegate'
Carthage/Checkouts/Alamofire/Source/Request.swift:230:20: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:372:29: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:372:18: error: initializer does not override a designated initializer from its superclass
Carthage/Checkouts/Alamofire/Source/Upload.swift:346:25: error: 'NSURLSessionUploadTask' has been renamed to 'URLSessionUploadTask'
Carthage/Checkouts/Alamofire/Source/Upload.swift:346:25: error: 'NSURLSessionUploadTask' has been renamed to 'URLSessionUploadTask'
Carthage/Checkouts/Alamofire/Source/Upload.swift:353:36: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Upload.swift:358:22: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Upload.swift:359:19: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
Carthage/Checkouts/Alamofire/Source/Upload.swift:35:25: error: 'NSURLSessionUploadTask' has been renamed to 'URLSessionUploadTask'
Carthage/Checkouts/Alamofire/Source/Upload.swift:36:29: error: 'NSInputStream' has been renamed to 'InputStream'
Carthage/Checkouts/Alamofire/Source/Manager.swift:84:44: error: cannot convert value of type '()' to expected argument type '__OS_dispatch_queue_attr?'
Carthage/Checkouts/Alamofire/Source/Upload.swift:47:15: error: enum case 'Stream' not found in type 'Manager.Uploadable'
Carthage/Checkouts/Alamofire/Source/Manager.swift:87:25: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Upload.swift:107:43: error: missing argument label 'method:' in call
Carthage/Checkouts/Alamofire/Source/Upload.swift:146:43: error: missing argument label 'method:' in call
Carthage/Checkouts/Alamofire/Source/Upload.swift:186:43: error: missing argument label 'method:' in call
Carthage/Checkouts/Alamofire/Source/Upload.swift:244:43: error: missing argument label 'method:' in call
Carthage/Checkouts/Alamofire/Source/Upload.swift:311:35: error: 'NSFileManager' has been renamed to 'FileManager'
Carthage/Checkouts/Alamofire/Source/Upload.swift:313:53: error: 'URLByAppendingPathComponent' has been renamed to 'appendingPathComponent(_:)'
Carthage/Checkouts/Alamofire/Source/Upload.swift:314:41: error: 'UUIDString' has been renamed to 'uuidString'
Carthage/Checkouts/Alamofire/Source/Upload.swift:315:31: error: value of type 'URL?' has no member 'URLByAppendingPathComponent'
Carthage/Checkouts/Alamofire/Source/Upload.swift:321:21: error: 'dispatch_async' has been replaced by instance method 'DispatchQueue.asynchronously(execute:)'
Carthage/Checkouts/Alamofire/Source/Upload.swift:321:36: error: 'dispatch_get_main_queue()' has been renamed to 'DispatchQueue.main'
Carthage/Checkouts/Alamofire/Source/Upload.swift:284:9: error: 'dispatch_async' has been replaced by instance method 'DispatchQueue.asynchronously(execute:)'
Carthage/Checkouts/Alamofire/Source/Upload.swift:284:24: error: 'dispatch_get_global_queue' has been replaced by 'DispatchQueue.global(attributes:)'
Carthage/Checkouts/Alamofire/Source/Upload.swift:284:50: error: 'DISPATCH_QUEUE_PRIORITY_DEFAULT' has been renamed to 'DispatchQueue.GlobalAttributes.qosDefault'
Carthage/Checkouts/Alamofire/Source/Upload.swift:302:21: error: 'dispatch_async' has been replaced by instance method 'DispatchQueue.asynchronously(execute:)'
Carthage/Checkouts/Alamofire/Source/Upload.swift:302:36: error: 'dispatch_get_main_queue()' has been renamed to 'DispatchQueue.main'
Carthage/Checkouts/Alamofire/Source/Upload.swift:306:21: error: 'dispatch_async' has been replaced by instance method 'DispatchQueue.asynchronously(execute:)'
Carthage/Checkouts/Alamofire/Source/Upload.swift:306:36: error: 'dispatch_get_main_queue()' has been renamed to 'DispatchQueue.main'
Carthage/Checkouts/Alamofire/Source/Upload.swift:313:53: error: 'URLByAppendingPathComponent' has been renamed to 'appendingPathComponent(_:)'
Carthage/Checkouts/Alamofire/Source/Upload.swift:314:41: error: 'UUIDString' has been renamed to 'uuidString'
Carthage/Checkouts/Alamofire/Source/Upload.swift:321:21: error: 'dispatch_async' has been replaced by instance method 'DispatchQueue.asynchronously(execute:)'
Carthage/Checkouts/Alamofire/Source/Upload.swift:321:36: error: 'dispatch_get_main_queue()' has been renamed to 'DispatchQueue.main'
Carthage/Checkouts/Alamofire/Source/Upload.swift:330:21: error: 'dispatch_async' has been replaced by instance method 'DispatchQueue.asynchronously(execute:)'
Carthage/Checkouts/Alamofire/Source/Upload.swift:330:36: error: 'dispatch_get_main_queue()' has been renamed to 'DispatchQueue.main'
Carthage/Checkouts/Alamofire/Source/Request.swift:222:23: error: 'NSProgress' has been renamed to 'Progress'
Carthage/Checkouts/Alamofire/Source/Stream.swift:88:36: error: 'NSURLSessionStreamDelegate' has been renamed to 'URLSessionStreamDelegate'
Carthage/Checkouts/Alamofire/Source/Error.swift:61:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/Error.swift:61:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/Error.swift:74:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/Error.swift:74:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/MultipartFormData.swift:579:44: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead
Carthage/Checkouts/Alamofire/Source/Response.swift:28:38: error: 'ErrorType' has been renamed to 'ErrorProtocol'
Carthage/Checkouts/Alamofire/Source/ServerTrustPolicy.swift:65:11: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:45: error: 'NSURLSessionDelegate' has been renamed to 'URLSessionDelegate'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:67: error: 'NSURLSessionTaskDelegate' has been renamed to 'URLSessionTaskDelegate'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:93: error: 'NSURLSessionDataDelegate' has been renamed to 'URLSessionDataDelegate'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:119: error: 'NSURLSessionDownloadDelegate' has been renamed to 'URLSessionDownloadDelegate'
Carthage/Checkouts/Alamofire/Source/Result.swift:35:34: error: 'ErrorType' has been renamed to 'ErrorProtocol'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:68:23: error: 'NSPropertyListFormat' has been renamed to 'PropertyListSerialization.PropertyListFormat'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:120:64: error: 'HTTPMethod' has been renamed to 'httpMethod'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:120:105: error: missing argument label 'method:' in call
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:122:37: error: 'init(URL:resolvingAgainstBaseURL:)' has been renamed to 'init(url:resolvingAgainstBaseURL:)'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:122:76: error: 'URL' has been renamed to 'url'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:125:114: error: missing argument label 'parameters:' in call
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:127:39: error: 'URL' has been renamed to 'url'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:127:59: error: 'URL' has been renamed to 'url'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:130:38: error: 'valueForHTTPHeaderField' has been renamed to 'value(forHTTPHeaderField:)'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:137:52: error: missing argument label 'parameters:' in call
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:144:31: error: 'NSJSONWritingOptions' has been renamed to 'JSONSerialization.WritingOptions'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:145:32: error: 'NSJSONSerialization' has been renamed to 'JSONSerialization'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:147:38: error: 'valueForHTTPHeaderField' has been renamed to 'value(forHTTPHeaderField:)'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:155:15: error: enum case 'PropertyList' not found in type 'ParameterEncoding'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:157:32: error: 'NSPropertyListSerialization' has been renamed to 'PropertyListSerialization'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:163:38: error: 'valueForHTTPHeaderField' has been renamed to 'value(forHTTPHeaderField:)'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:191:46: error: missing argument label 'key:' in call
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:195:46: error: missing argument label 'key:' in call
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:198:39: error: missing argument label 'string:' in call
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:224:50: error: value of type 'CharacterSet' has no member 'mutableCopy'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:248:48: error: missing argument label 'n:' in call
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:96:39: error: value of type 'LazyMapCollection<Dictionary<String, AnyObject>, String>' has no member 'sort'
Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift:101:71: error: 'joinWithSeparator' has been renamed to 'joined'
Carthage/Checkouts/Alamofire/Source/Request.swift:87:9: warning: extraneous duplicate parameter name; 'user' already has an argument label
Carthage/Checkouts/Alamofire/Source/Request.swift:118:44: warning: extraneous duplicate parameter name; 'user' already has an argument label
Carthage/Checkouts/Alamofire/Source/Error.swift:61:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/Error.swift:61:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/Error.swift:74:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/Error.swift:74:29: error: '=' has been replaced with ':' in attribute arguments
Carthage/Checkouts/Alamofire/Source/MultipartFormData.swift:579:44: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead
Carthage/Checkouts/Alamofire/Source/Response.swift:28:38: error: 'ErrorType' has been renamed to 'ErrorProtocol'
Carthage/Checkouts/Alamofire/Source/ServerTrustPolicy.swift:65:11: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:45: error: 'NSURLSessionDelegate' has been renamed to 'URLSessionDelegate'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:67: error: 'NSURLSessionTaskDelegate' has been renamed to 'URLSessionTaskDelegate'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:93: error: 'NSURLSessionDataDelegate' has been renamed to 'URLSessionDataDelegate'
Carthage/Checkouts/Alamofire/Source/Manager.swift:223:119: error: 'NSURLSessionDownloadDelegate' has been renamed to 'URLSessionDownloadDelegate'
Carthage/Checkouts/Alamofire/Source/Result.swift:35:34: error: 'ErrorType' has been renamed to 'ErrorProtocol'
Carthage/Checkouts/Alamofire/Source/Request.swift:39:22: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:39:22: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:42:25: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:48:26: error: 'NSHTTPURLResponse' has been renamed to 'HTTPURLResponse'
Carthage/Checkouts/Alamofire/Source/Request.swift:48:26: error: 'NSHTTPURLResponse' has been renamed to 'HTTPURLResponse'
Carthage/Checkouts/Alamofire/Source/Request.swift:51:26: error: 'NSProgress' has been renamed to 'Progress'
Carthage/Checkouts/Alamofire/Source/Request.swift:51:26: error: 'NSProgress' has been renamed to 'Progress'
Carthage/Checkouts/Alamofire/Source/Request.swift:58:19: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:58:39: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:89:22: error: 'NSURLCredentialPersistence' has been renamed to 'URLCredential.Persistence'
Carthage/Checkouts/Alamofire/Source/Request.swift:104:58: error: 'NSURLCredential' has been renamed to 'URLCredential'
Carthage/Checkouts/Alamofire/Source/Request.swift:164:34: warning: single argument function types require parentheses
Carthage/Checkouts/Alamofire/Source/Request.swift:219:27: error: 'NSOperationQueue' has been renamed to 'OperationQueue'
Carthage/Checkouts/Alamofire/Source/Request.swift:221:19: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:222:23: error: 'NSProgress' has been renamed to 'Progress'
Carthage/Checkouts/Alamofire/Source/Request.swift:228:25: error: 'NSURLCredential' has been renamed to 'URLCredential'
Carthage/Checkouts/Alamofire/Source/Request.swift:230:20: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:255:47: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:256:40: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:257:38: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:258:41: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:263:22: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:264:19: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:265:50: error: 'NSHTTPURLResponse' has been renamed to 'HTTPURLResponse'
Carthage/Checkouts/Alamofire/Source/Request.swift:279:22: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:280:19: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:281:44: error: 'NSURLAuthenticationChallenge' has been renamed to 'URLAuthenticationChallenge'
Carthage/Checkouts/Alamofire/Source/Request.swift:282:34: error: 'NSURLSessionAuthChallengeDisposition' has been renamed to 'URLSession.AuthChallengeDisposition'
Carthage/Checkouts/Alamofire/Source/Request.swift:319:22: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:320:19: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:321:52: error: 'NSInputStream' has been renamed to 'InputStream'
Carthage/Checkouts/Alamofire/Source/Request.swift:332:34: error: 'NSURLSession' has been renamed to 'URLSession'
        func URLSession(session: NSURLSession, task: NSURLSessionTask, didCompleteWithError error: NSError?) {
Carthage/Checkouts/Alamofire/Source/Request.swift:332:54: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
        func URLSession(session: NSURLSession, task: NSURLSessionTask, didCompleteWithError error: NSError?) {
Carthage/Checkouts/Alamofire/Source/Request.swift:355:43: error: 'NSURLSessionDataDelegate' has been renamed to 'URLSessionDataDelegate'
Carthage/Checkouts/Alamofire/Source/Request.swift:356:23: error: 'NSURLSessionDataTask' has been renamed to 'URLSessionDataTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:356:23: error: 'NSURLSessionDataTask' has been renamed to 'URLSessionDataTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:372:29: error: 'NSURLSessionTask' has been renamed to 'URLSessionTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:372:18: error: initializer does not override a designated initializer from its superclass
Carthage/Checkouts/Alamofire/Source/Request.swift:381:43: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:382:46: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:383:39: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:384:42: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:389:22: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:390:23: error: 'NSURLSessionDataTask' has been renamed to 'URLSessionDataTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:391:42: error: 'NSURLResponse' has been renamed to 'URLResponse'
Carthage/Checkouts/Alamofire/Source/Request.swift:392:33: error: 'NSURLSessionResponseDisposition' has been renamed to 'URLSession.ResponseDisposition'
Carthage/Checkouts/Alamofire/Source/Request.swift:406:22: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:407:23: error: 'NSURLSessionDataTask' has been renamed to 'URLSessionDataTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:408:49: error: 'NSURLSessionDownloadTask' has been renamed to 'URLSessionDownloadTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:413:34: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:413:58: error: 'NSURLSessionDataTask' has been renamed to 'URLSessionDataTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:440:22: error: 'NSURLSession' has been renamed to 'URLSession'
Carthage/Checkouts/Alamofire/Source/Request.swift:441:23: error: 'NSURLSessionDataTask' has been renamed to 'URLSessionDataTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:442:49: error: 'NSCachedURLResponse' has been renamed to 'CachedURLResponse'
Carthage/Checkouts/Alamofire/Source/Request.swift:443:34: error: 'NSCachedURLResponse' has been renamed to 'CachedURLResponse'
Carthage/Checkouts/Alamofire/Source/Request.swift:92:26: error: 'NSURLCredential' has been renamed to 'URLCredential'
Carthage/Checkouts/Alamofire/Source/Request.swift:119:48: error: 'dataUsingEncoding(_:allowLossyConversion:)' has been renamed to 'data(usingEncoding:allowLossyConversion:)'
Carthage/Checkouts/Alamofire/Source/Request.swift:119:66: error: 'NSUTF8StringEncoding' has been renamed to 'String.Encoding.utf8'
Carthage/Checkouts/Alamofire/Source/Request.swift:121:26: error: value of type 'Data' has no member 'base64EncodedStringWithOptions'
Carthage/Checkouts/Alamofire/Source/Download.swift:177:47: error: 'NSURLSessionDownloadDelegate' has been renamed to 'URLSessionDownloadDelegate'
Carthage/Checkouts/Alamofire/Source/Request.swift:181:9: error: 'NSNotificationCenter' has been renamed to 'NotificationCenter'
Carthage/Checkouts/Alamofire/Source/Request.swift:189:9: error: 'NSNotificationCenter' has been renamed to 'NotificationCenter'
Carthage/Checkouts/Alamofire/Source/Download.swift:178:27: error: 'NSURLSessionDownloadTask' has been renamed to 'URLSessionDownloadTask'
Carthage/Checkouts/Alamofire/Source/Request.swift:207:9: error: 'NSNotificationCenter' has been renamed to 'NotificationCenter'
Carthage/Checkouts/Alamofire/Source/Request.swift:284:30: error: 'NSURLSessionAuthChallengeDisposition' has been renamed to 'URLSession.AuthChallengeDisposition'
Carthage/Checkouts/Alamofire/Source/Request.swift:285:29: error: 'NSURLCredential' has been renamed to 'URLCredential'
Carthage/Checkouts/Alamofire/Source/Request.swift:323:29: error: 'NSInputStream' has been renamed to 'InputStream'
Carthage/Checkouts/Alamofire/Source/Request.swift:394:30: error: 'NSURLSessionResponseDisposition' has been renamed to 'URLSession.ResponseDisposition'
Carthage/Checkouts/Alamofire/Source/Request.swift:422:44: error: 'NSData' is not implicitly convertible to 'Data'; did you mean to use 'as' to explicitly convert?
Carthage/Checkouts/Alamofire/Source/Request.swift:445:33: error: 'NSCachedURLResponse' has been renamed to 'CachedURLResponse'
Carthage/Checkouts/Alamofire/Source/Request.swift:467:38: error: 'HTTPMethod' has been renamed to 'httpMethod'
Carthage/Checkouts/Alamofire/Source/Request.swift:471:37: error: 'URL' has been renamed to 'url'
Carthage/Checkouts/Alamofire/Source/ResponseSerialization.swift:87:22: error: 'dispatch_queue_t' is unavailable in Swift
Carthage/Checkouts/Alamofire/Source/ResponseSerialization.swift:88:44: error: 'NSHTTPURLResponse' has been renamed to 'HTTPURLResponse'
Carthage/Checkouts/Alamofire/Source/ResponseSerialization.swift:37:33: error: 'ErrorType' has been renamed to 'ErrorProtocol'
Carthage/Checkouts/Alamofire/Source/ResponseSerialization.swift:111:22: error: 'dispatch_queue_t' is unavailable in Swift
Carthage/Checkouts/Alamofire/Source/ResponseSerialization.swift:113:28: warning: single argument function types require parentheses
Carthage/Checkouts/Alamofire/Source/Request.swift:479:27: error: 'joinWithSeparator' has been renamed to 'joined'
Carthage/Checkouts/Alamofire/Source/Request.swift:491:27: error: 'URL' has been renamed to 'url'
Carthage/Checkouts/Alamofire/Source/Request.swift:497:37: error: 'HTTPMethod' has been renamed to 'httpMethod'
Carthage/Checkouts/Alamofire/Source/Request.swift:502:35: error: 'NSURLProtectionSpace' has been renamed to 'URLProtectionSpace'
Carthage/Checkouts/Alamofire/Source/Request.swift:550:36: error: 'HTTPBody' has been renamed to 'httpBody'
Carthage/Checkouts/Alamofire/Source/Request.swift:551:61: error: 'NSUTF8StringEncoding' has been renamed to 'String.Encoding.utf8'
Carthage/Checkouts/Alamofire/Source/Request.swift:553:31: error: value of type 'String' has no member 'stringByReplacingOccurrencesOfString'
Carthage/Checkouts/Alamofire/Source/Request.swift:561:27: error: 'joinWithSeparator' has been renamed to 'joined'

** BUILD FAILED **


The following build commands failed:
    CompileSwift normal arm64 Carthage/Checkouts/Alamofire/Source/Timeline.swift
    CompileSwift normal arm64 Carthage/Checkouts/Alamofire/Source/Upload.swift
    CompileSwift normal arm64 Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift
    CompileSwift normal arm64 Carthage/Checkouts/Alamofire/Source/Request.swift
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(5 failures)
@dcaunt

This comment has been minimized.

Copy link
Contributor

commented Jun 16, 2016

I haven't tested, but it looks like there's a solution in #1350

@iliaskarim

This comment has been minimized.

Copy link
Author

commented Jun 16, 2016

cheers @dcaunt, appreciate the link

the following command indeed worked, it used Swift 2.3 to build my Carthage dependencies:
TOOLCHAINS=com.apple.dt.toolchain.Swift_2_3 carthage bootstrap --platform ios

sadly Alamofire still doesn't build because of changes within the iOS SDK 😩

** BUILD FAILED **

The following build commands failed:
    CompileSwift normal arm64 Carthage/Checkouts/Alamofire/Source/Upload.swift
    CompileSwift normal arm64 Carthage/Checkouts/Alamofire/Source/Alamofire.swift
    CompileSwift normal arm64 Carthage/Checkouts/Alamofire/Source/ServerTrustPolicy.swift
    CompileSwift normal arm64 Carthage/Checkouts/Alamofire/Source/Download.swift
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(5 failures)
Carthage/Checkouts/Alamofire/Source/Upload.swift:315:31: error: value of optional type 'NSURL?' not unwrapped; did you mean to use '!' or '?'?
Carthage/Checkouts/Alamofire/Source/Upload.swift:318:58: error: value of optional type 'NSURL?' not unwrapped; did you mean to use '!' or '?'?
Carthage/Checkouts/Alamofire/Source/Alamofire.swift:54:16: error: value of optional type 'String?' not unwrapped; did you mean to use '!' or '?'?
Carthage/Checkouts/Alamofire/Source/ServerTrustPolicy.swift:184:46: error: contextual type 'AnyObject' cannot be used with array literal
Carthage/Checkouts/Alamofire/Source/ServerTrustPolicy.swift:190:50: error: contextual type 'AnyObject' cannot be used with array literal
Carthage/Checkouts/Alamofire/Source/ServerTrustPolicy.swift:214:50: error: contextual type 'AnyObject' cannot be used with array literal
Carthage/Checkouts/Alamofire/Source/ServerTrustPolicy.swift:243:41: error: use of unresolved identifier 'kSecTrustResultInvalid'
Carthage/Checkouts/Alamofire/Source/ServerTrustPolicy.swift:247:50: error: use of unresolved identifier 'kSecTrustResultUnspecified'
Carthage/Checkouts/Alamofire/Source/ServerTrustPolicy.swift:248:46: error: use of unresolved identifier 'kSecTrustResultProceed'
Carthage/Checkouts/Alamofire/Source/Download.swift:157:41: error: value of optional type 'NSURL?' not unwrapped; did you mean to use '!' or '?'?

does it make sense to try and build dependencies with the iOS 9.3 SDK? If so, anyone know how?

@AndrewSB

This comment has been minimized.

Copy link

commented Jun 16, 2016

@ILI4S that sounds like an Alamofire issue - if Alamofire pushes a swift-2.3 branch (2.2 -> 2.3 are minimal changes), you'd be able to build Alamofire

@AndrewSB

This comment has been minimized.

Copy link

commented Jun 16, 2016

@ILI4S try using this fork of Alamofire instead? https://github.com/KingOfBrian/Alamofire/tree/feature/Swift2.3

@mdiep mdiep added the question label Jun 18, 2016

@mdiep

This comment has been minimized.

Copy link
Member

commented Jun 18, 2016

You should also be able to specify the toolchain with Carthage's --toolchain argument.

Either way, Carthage is doing the right thing here. Dependencies will need to be updated to work with Swift 2.3 before you can move to Xcode 8.

@mdiep mdiep closed this Jun 18, 2016

@mythical-programmer

This comment has been minimized.

Copy link

commented Oct 17, 2016

When I am installing via Pods, I am using
pod 'Alamofire', '~> 3.4'
But the installation is completing with Alamofire 3.5.1 !?

How to approach further ?

@AndrewSB

This comment has been minimized.

Copy link

commented Oct 17, 2016

@codinggenie that looks like a question for the Cocoapods repo

@loretoparisi

This comment has been minimized.

Copy link

commented Oct 28, 2016

I have tried the solution above

 TOOLCHAINS=com.apple.dt.toolchain.Swift_2_3 
carthage build
carthage update

where my Cartfile is

github "Alamofire/Alamofire" >= 3.1.0

but after I build, Xcode still complains I cannot import a module compiled for swift 3.0.1 in a module compiled for swift 2.3.

@HazAT HazAT referenced this issue Dec 14, 2016

Closed

Using Swift 2.3 #95

@mediumbear

This comment has been minimized.

Copy link

commented Dec 20, 2016

Digging around the build log, I saw an export. To build with Swift 2.3, first
export TOOLCHAINS=com.apple.dt.toolchain.Swift_2_3
and the build will work (using XCode 8.2.1)

@seclorum

This comment has been minimized.

Copy link

commented Jan 16, 2017

Also works:

$ TOOLCHAINS=com.apple.dt.toolchain.Swift_2_3 carthage update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.