Skip to content

Skip SwiftLint when building via Carthage#128

Open
osamaghaffar wants to merge 1 commit intosurpher:mainfrom
osamaghaffar:carthage-skip-swiftlint
Open

Skip SwiftLint when building via Carthage#128
osamaghaffar wants to merge 1 commit intosurpher:mainfrom
osamaghaffar:carthage-skip-swiftlint

Conversation

@osamaghaffar
Copy link

@osamaghaffar osamaghaffar commented Feb 22, 2026

📝 Summary of Changes

•	Skip running SwiftLint when CARTHAGE=YES to prevent SourceKitten/sourcekitd crashes during Carthage builds on newer Xcode toolchains.
•	Keep SwiftLint running for normal Xcode builds.

Items of Note
• This only changes behavior for Carthage builds.
• When skipping, the script still creates the expected swiftlint.txt output so the build phase remains satisfied.

🔨 How To Test

Provide instructions on how to test your changes.
1. Integrate this branch/commit via Cartfile:
github "osamaghaffar/PactSwift" "carthage-skip-swiftlint"
2. Run:
carthage bootstrap --platform iOS --cache-builds --verbose
3. Confirm build completes and SwiftLint is skipped when CARTHAGE=YES.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant