[GH-ISSUE #412] Cann't use this framework with Xcode 9 & swift 4 #262

Closed
opened 2026-03-03 16:47:11 +03:00 by kerem · 5 comments
Owner

Originally created by @BBHNation on GitHub (Sep 27, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/412

Description:

When I use the old project created by Xcode 8 & swift 3, it works with the new Xcode 9 & swift 4.
But when I create a new project with Xcode 9 & swift 4 & the same .swift file, the code won't call back and the APP just show web content.

OAuth Provider (Twitter, Github, ..):

Github

OAuth Version:

  • Version 1
  • Version 2

OS (Please fill the version) :

  • iOS :
  • OSX :
  • TVOS :
  • WatchOS :

Installation method:

  • Carthage
  • CocoaPods
  • Manually

Library version:

  • head
  • v1.0.0
  • v0.6
  • other: (Please fill in the version you are using.)

Xcode version:

  • 9.0 (Swift 4.0)

  • 8.0 (Swift 3.0)

  • 8.0 (Swift 2.3)

  • 7.3.1

  • other: (Please fill in the version you are using.)

  • objective c

Originally created by @BBHNation on GitHub (Sep 27, 2017). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/412 ### Description: When I use the old project created by Xcode 8 & swift 3, it works with the new Xcode 9 & swift 4. But when I create a new project with Xcode 9 & swift 4 & the same .swift file, the code won't call back and the APP just show web content. ### OAuth Provider (Twitter, Github, ..): Github ### OAuth Version: - [ ] Version 1 - [x] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [ ] Carthage - [x] CocoaPods - [ ] Manually ### Library version: - [ ] head - [x] v1.0.0 - [ ] v0.6 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [x] 9.0 (Swift 4.0) - [ ] 8.0 (Swift 3.0) - [ ] 8.0 (Swift 2.3) - [ ] 7.3.1 - [ ] other: (Please fill in the version you are using.) - [ ] objective c
kerem closed this issue 2026-03-03 16:47:12 +03:00
Author
Owner

@phimage commented on GitHub (Sep 27, 2017):

Installation method?

<!-- gh-comment-id:332494619 --> @phimage commented on GitHub (Sep 27, 2017): Installation method?
Author
Owner

@BBHNation commented on GitHub (Sep 27, 2017):

install with CocoaPods

<!-- gh-comment-id:332503439 --> @BBHNation commented on GitHub (Sep 27, 2017): install with CocoaPods
Author
Owner

@phimage commented on GitHub (Sep 27, 2017):

your url authorizeURLHandler is?

then did you configure the project correctly, see readme to add scheme
https://github.com/OAuthSwift/OAuthSwift#setting-url-schemes

<!-- gh-comment-id:332509648 --> @phimage commented on GitHub (Sep 27, 2017): your url `authorizeURLHandler` is? then did you configure the project correctly, see readme to add scheme https://github.com/OAuthSwift/OAuthSwift#setting-url-schemes
Author
Owner

@BBHNation commented on GitHub (Sep 28, 2017):

It's my bad, I didn't follow the steps one by one while I was creating the new project. I ignored to add scheme and the code in AppDelegate.swift .
Thank you so much for your reply!

<!-- gh-comment-id:332696920 --> @BBHNation commented on GitHub (Sep 28, 2017): It's my bad, I didn't follow the steps one by one while I was creating the new project. I ignored to add scheme and the code in AppDelegate.swift . Thank you so much for your reply!
Author
Owner

@BBHNation commented on GitHub (Sep 28, 2017):

Anyway, this issue shows OAuthSwift can be used with Xcode 9 & Swift 4

<!-- gh-comment-id:332697574 --> @BBHNation commented on GitHub (Sep 28, 2017): Anyway, this issue shows OAuthSwift can be used with Xcode 9 & Swift 4
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#262
No description provided.