[GH-ISSUE #477] Updated 1.2.2, encountering compile-time errors #311

Closed
opened 2026-03-03 16:47:36 +03:00 by kerem · 2 comments
Owner

Originally created by @garyhooper on GitHub (Jul 9, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/477

Description:

After updating to 1.2.2 from 1.2.0, I am encountering 2 compiler errors:

SHA1.swift:142: Binary operator '-' cannot be applied to operands of type 'D.IndexDistance' and 'Int'

Int+OAuth.swift:30: Missing argument for parameter 'capacity' in call

OAuth Provider? (Twitter, 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.2.2
  • v1.2 (Swift 4.0)
  • v1.0.0
  • v0.6
  • other: (Please fill in the version you are using.)

Xcode version:

  • 9.3 (Swift 4.1)

  • 9.0 (Swift 4.0)

  • 9.0 (Swift 3.2)

  • 8.x (Swift 3.x)

  • 8.0 (Swift 2.3)

  • 7.3.1

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

  • objective c

Originally created by @garyhooper on GitHub (Jul 9, 2018). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/477 ### Description: After updating to 1.2.2 from 1.2.0, I am encountering 2 compiler errors: ``` SHA1.swift:142: Binary operator '-' cannot be applied to operands of type 'D.IndexDistance' and 'Int' Int+OAuth.swift:30: Missing argument for parameter 'capacity' in call ``` ### OAuth Provider? (Twitter, Github, ..): ### OAuth Version: - [x] Version 1 - [ ] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [ ] Carthage - [ ] CocoaPods - [ ] Manually ### Library version: - [ ] head - [x] v1.2.2 - [ ] v1.2 (Swift 4.0) - [ ] v1.0.0 - [ ] v0.6 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [ ] 9.3 (Swift 4.1) - [x] 9.0 (Swift 4.0) - [ ] 9.0 (Swift 3.2) - [ ] 8.x (Swift 3.x) - [ ] 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:36 +03:00
Author
Owner

@phimage commented on GitHub (Jul 9, 2018):

Hi

As you can see after checking the Xcode and library version, you need to upgrade your Xcode and choose newer Swift if you want to update OAuthSwift

Alternatively, you can keep old version
I will not maintain a swift 4.0 version branch

Ps/ my bad to not make instead a 1.3 version

<!-- gh-comment-id:403617285 --> @phimage commented on GitHub (Jul 9, 2018): Hi As you can see after checking the Xcode and library version, you need to upgrade your Xcode and choose newer Swift if you want to update OAuthSwift Alternatively, you can keep old version I will not maintain a swift 4.0 version branch Ps/ my bad to not make instead a 1.3 version
Author
Owner

@garyhooper commented on GitHub (Jul 9, 2018):

Understood. Thanks for the quick response.

<!-- gh-comment-id:403617970 --> @garyhooper commented on GitHub (Jul 9, 2018): Understood. Thanks for the quick response.
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#311
No description provided.