Carthage: Simpler API for carthage build --no-skip-current

Created on 31 Jul 2016  路  3Comments  路  Source: Carthage/Carthage

  • carthage version: 0.16.2
  • xcodebuild -version: Xcode 7.3.1 Build version 7D1014
  • Are you using --no-build? No
  • Are you using --no-use-binaries? No
  • Are you using --use-submodules? No

    Feature request:

I have to Google every single time I use carthage build --no-skip-current is there a simpler API for carthage build --no-skip-current? Something more memorable like:

carthage build --archive

So then I can do

carthage archive

Or maybe

carthage archive --building, so I can skip the build command?

Thanks for your help.

enhancement

Most helpful comment

carthage help build might be helpful. 鈽猴笍

But I do think it'd be worth adding a variant that both builds and archives. carthage build --archive makes sense to me. Want to open a pull request? 馃槃

All 3 comments

carthage help build might be helpful. 鈽猴笍

But I do think it'd be worth adding a variant that both builds and archives. carthage build --archive makes sense to me. Want to open a pull request? 馃槃

Tried looking into this but it's quite difficult, I get an error in currying the BuildCommand inside the method evaluate.

Binary operator '<|' cannot be applied to operands of type 'CommandMode' and 'Argument<[Any]>'

https://github.com/3lvis/Carthage/tree/add-archive-option-to-build

I think you just need to change defaultValue: nil to defaultValue: false. Since public let archive: Bool, nil isn't a valid value. This causes type inference to fail, leading to the unhelpful error that you shared above.

Was this page helpful?
0 / 5 - 0 ratings