kareman / SwiftShell

A Swift framework for shell scripting.
https://kareman.github.io/SwiftShell
MIT License
1.03k stars 87 forks source link

I'm having trouble building with Carthage #64

Closed jessegrosjean closed 6 years ago

jessegrosjean commented 6 years ago

The error maybe related to swiftlint problems? I have swiftlint version 0.26.0.

Here's the error that I see:

*** Building scheme "SwiftShell" in SwiftShell.xcodeproj
Build Failed
    Task failed with exit code 65:
    /usr/bin/xcrun xcodebuild -project /Users/jessegrosjean/Documents/github/Workspace/Carthage/Checkouts/SwiftShell/SwiftShell.xcodeproj -scheme SwiftShell -configuration Release -derivedDataPath /Users/jessegrosjean/Library/Caches/org.carthage.CarthageKit/DerivedData/9.4.1_9F2000/SwiftShell/4.1.0 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/kl/mq456jxs2hl13xn41v0pl9qh0000gn/T/SwiftShell SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/jessegrosjean/Documents/github/Workspace/Carthage/Checkouts/SwiftShell)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/kl/mq456jxs2hl13xn41v0pl9qh0000gn/T/carthage-xcodebuild.cGhLjB.log

And then in carthage-xcodebuild.cGhLjB.log I see:

...
/Users/jessegrosjean/Documents/github/Workspace/Carthage/Checkouts/SwiftShell/Sources/SwiftShell/Command.swift:274: warning: Line Length Violation: Line should be 120 characters or less: currently 143 characters (line_length)
/Users/jessegrosjean/Documents/github/Workspace/Carthage/Checkouts/SwiftShell/Sources/SwiftShell/Command.swift:284: warning: Line Length Violation: Line should be 120 characters or less: currently 157 characters (line_length)
/Users/jessegrosjean/Documents/github/Workspace/Carthage/Checkouts/SwiftShell/Sources/SwiftShell/Command.swift:294: error: Line Length Violation: Line should be 120 characters or less: currently 252 characters (line_length)
/Users/jessegrosjean/Documents/github/Workspace/Carthage/Checkouts/SwiftShell/Sources/SwiftShell/Command.swift:385: warning: Line Length Violation: Line should be 120 characters or less: currently 134 characters (line_length)
/Users/jessegrosjean/Documents/github/Workspace/Carthage/Checkouts/SwiftShell/Sources/SwiftShell/Command.swift:449: warning: Line Length Violation: Line should be 120 characters or less: currently 133 characters (line_length)
/Users/jessegrosjean/Documents/github/Workspace/Carthage/Checkouts/SwiftShell/Sources/SwiftShell/Command.swift:466: warning: File Line Length Violation: File should contain 400 lines or less: currently contains 466 (file_length)
Done linting! Found 245 violations, 34 serious in 22 files.

** ARCHIVE FAILED **

The following build commands failed:
    PhaseScriptExecution Run\ Script /Users/jessegrosjean/Library/Caches/org.carthage.CarthageKit/DerivedData/9.4.1_9F2000/SwiftShell/4.1.0/Build/Intermediates.noindex/ArchiveIntermediates/SwiftShell/IntermediateBuildFilesPath/SwiftShell.build/Release/SwiftShell.build/Script-BA50D29D1E9714C7002BA4A5.sh
(1 failure)
kareman commented 6 years ago

You're right, this is a bug with swiftlint. I have released a new version of SwiftShell which removes the swiftlint build phase from Xcode. It was inactive anyway.