{"action":"created","issue":{"url":"https://api.github.com/repos/Carthage/Carthage/issues/1445","repository_url":"https://api.github.com/repos/Carthage/Carthage","labels_url":"https://api.github.com/repos/Carthage/Carthage/issues/1445/labels{/name}","comments_url":"https://api.github.com/repos/Carthage/Carthage/issues/1445/comments","events_url":"https://api.github.com/repos/Carthage/Carthage/issues/1445/events","html_url":"https://github.com/Carthage/Carthage/issues/1445","id":171972810,"number":1445,"title":"Xcode 8: Allowing for dependencies that support both Swift 2.3 and 3.0","user":{"login":"mxcl","id":58962,"avatar_url":"https://avatars.githubusercontent.com/u/58962?v=3","gravatar_id":"","url":"https://api.github.com/users/mxcl","html_url":"https://github.com/mxcl","followers_url":"https://api.github.com/users/mxcl/followers","following_url":"https://api.github.com/users/mxcl/following{/other_user}","gists_url":"https://api.github.com/users/mxcl/gists{/gist_id}","starred_url":"https://api.github.com/users/mxcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxcl/subscriptions","organizations_url":"https://api.github.com/users/mxcl/orgs","repos_url":"https://api.github.com/users/mxcl/repos","events_url":"https://api.github.com/users/mxcl/events{/privacy}","received_events_url":"https://api.github.com/users/mxcl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-18T18:48:17Z","updated_at":"2016-10-04T01:59:19Z","closed_at":null,"body":"OHHTPStubs supports both Swift 2.3 and Swift 3.0 in its (once merged) master branch.\r\n\r\nThus it would be ideal if the choice of `SWIFT_VERSION` that its xcodeproj is built with is punted to a user-choice when executing `carthage bootstrap`.\r\n\r\nI opened this ticket to discuss options.\r\n\r\nRefs: https://github.com/AliSoftware/OHHTTPStubs/pull/192"},"comment":{"url":"https://api.github.com/repos/Carthage/Carthage/issues/comments/251276640","html_url":"https://github.com/Carthage/Carthage/issues/1445#issuecomment-251276640","issue_url":"https://api.github.com/repos/Carthage/Carthage/issues/1445","id":251276640,"user":{"login":"reidmain","id":535202,"avatar_url":"https://avatars.githubusercontent.com/u/535202?v=3","gravatar_id":"","url":"https://api.github.com/users/reidmain","html_url":"https://github.com/reidmain","followers_url":"https://api.github.com/users/reidmain/followers","following_url":"https://api.github.com/users/reidmain/following{/other_user}","gists_url":"https://api.github.com/users/reidmain/gists{/gist_id}","starred_url":"https://api.github.com/users/reidmain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reidmain/subscriptions","organizations_url":"https://api.github.com/users/reidmain/orgs","repos_url":"https://api.github.com/users/reidmain/repos","events_url":"https://api.github.com/users/reidmain/events{/privacy}","received_events_url":"https://api.github.com/users/reidmain/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T01:59:18Z","updated_at":"2016-10-04T01:59:18Z","body":"> Use Carthage's --toolchain argument to point to either a 2.3 or a 3.0 toolchain.\r\n\r\nI don't think this is necessary. Carthage simply attempts to build the xcodeproj or xcworkspace which should have the a `SWIFT_VERSION` build setting and xcodebuild will use the appropriate toolchain. Since you can't mix Swift 2.3 and 3 code then you need to manually ensure all of your dependencies are have the correct `SWIFT_VERSION` set.\r\n\r\n> You might be able to prefix usage of carthage like SWIFT_VERSION=3.0 carthage …. (I'm not sure on this, but I think it was mentioned in an issue.)\r\n\r\nIsn't that just setting an environment variable? You could try to pass `SWIFT_VERSION` into xcodebuild as a build arg but I wasn't aware of Carthage having this ability.\r\n\r\n> Break compatibility for Swift 3.0.\r\n\r\nThis is what I expected Carthage's stance to be and just wanted to see it down in writing. I do think that developers should support Swift 3 in their main releases and create Swift 2.3 side releases as needed.\r\n\r\nPersonally I will be shocked if Apple drops Swift 2.3 support before Xcode 9. I bet that next WWDC we will see Swift 4 with no intermediary layer and Apple will recommend that everyone update to Swift 3 before Xcode 9 is released. Perhaps going as far as not allowing you to submit apps that build against Swift 2.3 for iOS 11."}}
{"actor":{"display_login":"reidmain"}}