[GH-ISSUE #407] Carthage build failing due to SwiftLint #260

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

Originally created by @col on GitHub (Sep 8, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/407

Description:

Run carthage build

Output

The following build commands failed:
	PhaseScriptExecution swiftlint /Users/col/Library/Developer/Xcode/DerivedData/OAuthSwift-dnqdsjigmwdntdbelfgdypovmokj/Build/Intermediates/OAuthSwift.build/Release-iphoneos/OAuthSwift.build/Script-C41824251EE4079C00C5D0A3.sh
(1 failure)
ift/Sources/String+OAuthSwift.swift:88:40: error: Superfluous Disable Command Violation: SwiftLint rule 'force_cast' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)

OS (Please fill the version) :

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

Installation method:

  • Carthage
  • CocoaPods
  • Manually

Library version:

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

Xcode version:

  • 8.3.3 (Swift 3.1)

  • 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 @col on GitHub (Sep 8, 2017). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/407 ### Description: Run ``carthage build`` Output ``` The following build commands failed: PhaseScriptExecution swiftlint /Users/col/Library/Developer/Xcode/DerivedData/OAuthSwift-dnqdsjigmwdntdbelfgdypovmokj/Build/Intermediates/OAuthSwift.build/Release-iphoneos/OAuthSwift.build/Script-C41824251EE4079C00C5D0A3.sh (1 failure) ift/Sources/String+OAuthSwift.swift:88:40: error: Superfluous Disable Command Violation: SwiftLint rule 'force_cast' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command) ``` ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [x] Carthage - [ ] CocoaPods - [ ] Manually ### Library version: - [x] head - [x] v1.1.2 - [ ] v0.6 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [x] 8.3.3 (Swift 3.1) - [ ] 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:09 +03:00
Author
Owner

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

Thanks for the issue
I cannot fix with #408 because not everybody update swiftlint
And I think swiftlint is buggy for that rule...

I will fix by setting Superfluous Disable Command Violation as warning

<!-- gh-comment-id:328001224 --> @phimage commented on GitHub (Sep 8, 2017): Thanks for the issue I cannot fix with #408 because not everybody update swiftlint And I think swiftlint is buggy for that rule... I will fix by setting Superfluous Disable Command Violation as warning
Author
Owner

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

I try to fix my push but I have an issue with git

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags https://github.com/OAuthSwift/OAuthSwift refs/heads/master:refs/heads/master
Pushing to https://github.com/OAuthSwift/OAuthSwift
remote: Permission to OAuthSwift/OAuthSwift.git denied to phimage.
fatal: unable to access 'https://github.com/OAuthSwift/OAuthSwift/': The requested URL returned error: 403
Completed with errors, see above
<!-- gh-comment-id:328004529 --> @phimage commented on GitHub (Sep 8, 2017): I try to fix my push but I have an issue with git ``` git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags https://github.com/OAuthSwift/OAuthSwift refs/heads/master:refs/heads/master Pushing to https://github.com/OAuthSwift/OAuthSwift remote: Permission to OAuthSwift/OAuthSwift.git denied to phimage. fatal: unable to access 'https://github.com/OAuthSwift/OAuthSwift/': The requested URL returned error: 403 Completed with errors, see above ```
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#260
No description provided.