[GH-ISSUE #333] Don't work with swift 2.3 #205

Closed
opened 2026-03-03 16:46:40 +03:00 by kerem · 6 comments
Owner

Originally created by @PaulLafytskyi on GitHub (Feb 3, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/333

Description:

OAuth Provider (Twitter, Github, ..):

OAuth Version:

  • Version 1
  • [x ] 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:

  • 8.0 (Swift 3.0)

  • 8.0 (Swift 2.3)

  • 7.3.1

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

  • objective c

screen shot 2017-02-03 at 5 17 32 pm

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '2.3'
        end
    end
end
Originally created by @PaulLafytskyi on GitHub (Feb 3, 2017). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/333 ### Description: ### OAuth Provider (Twitter, 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: - [x] head - [ ] v1.0.0 - [ ] v0.6 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [ ] 8.0 (Swift 3.0) - [x] 8.0 (Swift 2.3) - [ ] 7.3.1 - [ ] other: (Please fill in the version you are using.) - [ ] objective c ![screen shot 2017-02-03 at 5 17 32 pm](https://cloud.githubusercontent.com/assets/8931303/22596552/b96008f4-ea34-11e6-8513-14604d1f387e.png) ``` post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '2.3' end end end ```
kerem closed this issue 2026-03-03 16:46:40 +03:00
Author
Owner

@PaulLafytskyi commented on GitHub (Feb 3, 2017):

screen shot 2017-02-03 at 5 29 55 pm
The same story if we try to use it like a Swift framework as in description.

<!-- gh-comment-id:277277727 --> @PaulLafytskyi commented on GitHub (Feb 3, 2017): ![screen shot 2017-02-03 at 5 29 55 pm](https://cloud.githubusercontent.com/assets/8931303/22597009/75320b58-ea36-11e6-955d-0e41d59fe16e.png) The same story if we try to use it like a Swift framework as in description.
Author
Owner

@phimage commented on GitHub (Feb 3, 2017):

Have you set the 2.3 branch in your podfile?
Issue description say 'head' version, not 0.6

<!-- gh-comment-id:277281613 --> @phimage commented on GitHub (Feb 3, 2017): Have you set the 2.3 branch in your podfile? Issue description say 'head' version, not 0.6
Author
Owner

@PaulLafytskyi commented on GitHub (Feb 3, 2017):

Oh, my bad. I missed it.

<!-- gh-comment-id:277286407 --> @PaulLafytskyi commented on GitHub (Feb 3, 2017): Oh, my bad. I missed it.
Author
Owner

@DebanjanChakrabortyCN commented on GitHub (Jun 23, 2017):

I'm facing the same issue.
Below is my podfile excerpt.

The project is being run in xcode 7.3, swift 2.3.
After downloading, build gives me an entire list of errors
target 'TestApp' do

Comment the next line if you're not using Swift and don't want to use dynamic frameworks

use_frameworks!

pod 'Alamofire', '~> 3.5'
pod 'OAuthSwift', '1.1.0'

Pods for TestApp

end

<!-- gh-comment-id:310612243 --> @DebanjanChakrabortyCN commented on GitHub (Jun 23, 2017): I'm facing the same issue. Below is my podfile excerpt. The project is being run in xcode 7.3, swift 2.3. After downloading, build gives me an entire list of errors target 'TestApp' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! pod 'Alamofire', '~> 3.5' pod 'OAuthSwift', '1.1.0' # Pods for TestApp end
Author
Owner

@phimage commented on GitHub (Jun 23, 2017):

@DebanjanChakrabortyCN
same issue so, read the answer...

<!-- gh-comment-id:310618719 --> @phimage commented on GitHub (Jun 23, 2017): @DebanjanChakrabortyCN same issue so, read the answer...
Author
Owner

@PaulLafytskyi commented on GitHub (Jun 23, 2017):

@DebanjanChakrabortyCN Select the branch with your swift version.
For swift 2.3 try next.

platform :ios, '8.0'
use_frameworks!

pod 'OAuthSwift', '~> 0.5.0'
<!-- gh-comment-id:310619391 --> @PaulLafytskyi commented on GitHub (Jun 23, 2017): @DebanjanChakrabortyCN Select the branch with your swift version. For swift 2.3 try next. ``` platform :ios, '8.0' use_frameworks! pod 'OAuthSwift', '~> 0.5.0' ```
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#205
No description provided.