[GH-ISSUE #82] Swift 2.0 / Xcode 7 Support #49

Closed
opened 2026-03-03 16:45:12 +03:00 by kerem · 18 comments
Owner

Originally created by @rhysforyou on GitHub (Jul 9, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/82

What plans are there to support Swift 2.0 with OAuthSwift?

Originally created by @rhysforyou on GitHub (Jul 9, 2015). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/82 What plans are there to support Swift 2.0 with OAuthSwift?
kerem closed this issue 2026-03-03 16:45:12 +03:00
Author
Owner

@gabriel-jones commented on GitHub (Jul 9, 2015):

I'm guessing dongri and phimage will update the project when Xcode 7 and Swift 2 are officially released. In the meantime, I guess you can try Apple's swift converter in Xcode 7, which (mostly accurately) converts your old swift files to swift 2.0 files.

<!-- gh-comment-id:119776931 --> @gabriel-jones commented on GitHub (Jul 9, 2015): I'm guessing dongri and phimage will update the project when Xcode 7 and Swift 2 are officially released. In the meantime, I guess you can try Apple's swift converter in Xcode 7, which (mostly accurately) converts your old swift files to swift 2.0 files.
Author
Owner

@rhysforyou commented on GitHub (Jul 9, 2015):

Surely they'd be working to get it updated ahead of time though? What I'd ideally like is a Swift 2 development branch that can be merged into master when the GM seed comes out. That'll make it easier for developers who rely on OAuthSwift as a dependency to get their codebases ready for Swift 2.0 ahead of time

<!-- gh-comment-id:119778898 --> @rhysforyou commented on GitHub (Jul 9, 2015): Surely they'd be working to get it updated ahead of time though? What I'd ideally like is a Swift 2 development branch that can be merged into `master` when the GM seed comes out. That'll make it easier for developers who rely on OAuthSwift as a dependency to get their codebases ready for Swift 2.0 ahead of time
Author
Owner

@ejpusa-zz commented on GitHub (Jul 12, 2015):

If you use only one site to authenticate too, it's a great project to convert that piece to Swift 2. Hack away. And you'll learn lots. OAuth is probably one of the top topics in Comp Sci these days, everyone is into security, and a great piece of code to learn from.

<!-- gh-comment-id:120718653 --> @ejpusa-zz commented on GitHub (Jul 12, 2015): If you use only one site to authenticate too, it's a great project to convert that piece to Swift 2. Hack away. And you'll learn lots. OAuth is probably one of the top topics in Comp Sci these days, everyone is into security, and a great piece of code to learn from.
Author
Owner

@mwermuth commented on GitHub (Jul 17, 2015):

Hey I am working on a Swift 2.0 version. I have it already running. But I made some additional changes to use it with Youtube and the new SFSafariViewController, because I needed it for an app I am working on. I will clean it out and make a Pull Request to have a swift2.0 dev branch here. In the meantime you can have a look here: https://github.com/mwermuth/OAuthSwift/tree/swift2.0

<!-- gh-comment-id:122331164 --> @mwermuth commented on GitHub (Jul 17, 2015): Hey I am working on a Swift 2.0 version. I have it already running. But I made some additional changes to use it with Youtube and the new SFSafariViewController, because I needed it for an app I am working on. I will clean it out and make a Pull Request to have a swift2.0 dev branch here. In the meantime you can have a look here: https://github.com/mwermuth/OAuthSwift/tree/swift2.0
Author
Owner

@crewshin commented on GitHub (Jul 20, 2015):

+1 for a swift2 branch.

<!-- gh-comment-id:123075040 --> @crewshin commented on GitHub (Jul 20, 2015): +1 for a swift2 branch.
Author
Owner

@driver733 commented on GitHub (Aug 6, 2015):

+1 for swift 2.0 support

<!-- gh-comment-id:128490018 --> @driver733 commented on GitHub (Aug 6, 2015): +1 for swift 2.0 support
Author
Owner

@pschneider commented on GitHub (Aug 11, 2015):

@mwermuth works fine for me so far. thanks :)

<!-- gh-comment-id:129830455 --> @pschneider commented on GitHub (Aug 11, 2015): @mwermuth works fine for me so far. thanks :)
Author
Owner

@driver733 commented on GitHub (Aug 11, 2015):

@mwermuth thanks too!

<!-- gh-comment-id:129864575 --> @driver733 commented on GitHub (Aug 11, 2015): @mwermuth thanks too!
Author
Owner

@MathijsK93 commented on GitHub (Aug 12, 2015):

Maybe a stupid question, but how can i use @mwermuth his fork in my xcode project? The podfile is referenced to the original OAuthSwift..

<!-- gh-comment-id:130416703 --> @MathijsK93 commented on GitHub (Aug 12, 2015): Maybe a stupid question, but how can i use @mwermuth his fork in my xcode project? The podfile is referenced to the original OAuthSwift..
Author
Owner

@pschneider commented on GitHub (Aug 12, 2015):

@MathijsK93
Easiest way is to use Carthage. There you can specify his repo and add "swift2.0" at the end to use the specific swift 2 branch.

github "mwermuth/OAuthSwift" "swift2.0"

I believe to do this with CocoaPods you need to fork and edit the podspec but not sure.

Sent from my iPhone

On 12 Aug 2015, at 9:18 pm, Mathijs notifications@github.com wrote:

Maybe a stupid question, but how can i use @mwermuth his fork in my xcode project? The podfile is referenced to the original OAuthSwift..


Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:130470050 --> @pschneider commented on GitHub (Aug 12, 2015): @MathijsK93 Easiest way is to use Carthage. There you can specify his repo and add "swift2.0" at the end to use the specific swift 2 branch. ``` github "mwermuth/OAuthSwift" "swift2.0" ``` I believe to do this with CocoaPods you need to fork and edit the podspec but not sure. Sent from my iPhone > On 12 Aug 2015, at 9:18 pm, Mathijs notifications@github.com wrote: > > Maybe a stupid question, but how can i use @mwermuth his fork in my xcode project? The podfile is referenced to the original OAuthSwift.. > > — > Reply to this email directly or view it on GitHub.
Author
Owner

@mwermuth commented on GitHub (Aug 13, 2015):

It does not matter whats written in the podspec you can specify the repo and branch in the Podfile. I am using it like this

pod 'OAuthSwift', :git => 'https://github.com/mwermuth/OAuthSwift.git', :branch => 'swift2.0'

Hope this helps :)

<!-- gh-comment-id:130564852 --> @mwermuth commented on GitHub (Aug 13, 2015): It does not matter whats written in the podspec you can specify the repo and branch in the Podfile. I am using it like this ``` pod 'OAuthSwift', :git => 'https://github.com/mwermuth/OAuthSwift.git', :branch => 'swift2.0' ``` Hope this helps :)
Author
Owner

@damianesteban commented on GitHub (Aug 16, 2015):

~@mwermuth - is your example application working for you with the most recent version of Xcode and Swift 2.0? I'm unable to get the GitHub example working at all.

UPDATE: I figured out what the issue was. I'll submit a PR shortly.

<!-- gh-comment-id:131576835 --> @damianesteban commented on GitHub (Aug 16, 2015): ~@mwermuth - is your example application working for you with the most recent version of Xcode and Swift 2.0? I'm unable to get the GitHub example working at all. **UPDATE:** I figured out what the issue was. I'll submit a PR shortly.
Author
Owner

@mwermuth commented on GitHub (Aug 29, 2015):

I need to adopt the latest changed in XCode 6 beta 7. I will try to submit the change in the upcoming week.

<!-- gh-comment-id:135966740 --> @mwermuth commented on GitHub (Aug 29, 2015): I need to adopt the latest changed in XCode 6 beta 7. I will try to submit the change in the upcoming week.
Author
Owner

@mwermuth commented on GitHub (Sep 15, 2015):

I pushed some Swift 2.0 XCode 7 GM changes to my fork. I still need to se if everything works, but if anybody wants to check it out: https://github.com/mwermuth/OAuthSwift/tree/swift2.0

<!-- gh-comment-id:140355175 --> @mwermuth commented on GitHub (Sep 15, 2015): I pushed some Swift 2.0 XCode 7 GM changes to my fork. I still need to se if everything works, but if anybody wants to check it out: https://github.com/mwermuth/OAuthSwift/tree/swift2.0
Author
Owner

@phimage commented on GitHub (Sep 15, 2015):

@mwermuth did you try to merge original master modifications since you create your swift2.0 branch?
(some bug fix, uber, ...)

<!-- gh-comment-id:140465205 --> @phimage commented on GitHub (Sep 15, 2015): @mwermuth did you try to merge original master modifications since you create your swift2.0 branch? (some bug fix, uber, ...)
Author
Owner

@mwermuth commented on GitHub (Sep 17, 2015):

@phimage Good one, not yet but will do :)

<!-- gh-comment-id:141001420 --> @mwermuth commented on GitHub (Sep 17, 2015): @phimage Good one, not yet but will do :)
Author
Owner

@phimage commented on GitHub (Sep 17, 2015):

from 6e7b674a65 to 1fcc3a1816 project owner implement swift2
@mwermuth you could compare if you take different path ;)

maybe issue could be closed now

<!-- gh-comment-id:141090960 --> @phimage commented on GitHub (Sep 17, 2015): from 6e7b674a65348b57dc8b98ffeff523bd08f03222 to 1fcc3a1816792f11a226ae3b9ded7311e554e7c1 project owner implement swift2 @mwermuth you could compare if you take different path ;) maybe issue could be closed now
Author
Owner

@rhysforyou commented on GitHub (Sep 17, 2015):

🎉

<!-- gh-comment-id:141275965 --> @rhysforyou commented on GitHub (Sep 17, 2015): :tada:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#49
No description provided.