Swiftpack.co - Package - artemnovichkov/Carting

Carting

Make Swift Package Manager Swift Package Manager

Do you use Carthage? Are you feel tired of adding special script and the paths to frameworks (point 4, 5 and 6 in Getting Started guide) manually? Me too. Carting does it for you. It scans Carthage folder and linked frameworks, gets framework names and updates the script.

Carting usage

Using

Run carting update in project folder. That's all.

By default Carting searches a script named Carthage, but you can set a name of your script via command line arguments:

$ carting update -s MyBestScript

If there is no script with the name, Carting will add a new one.

Since Xcode 10 Run Script Phases support declaring input and output files in a .xcfilelist file. This file should contain a newline-separated list of the file paths for the inputs or outputs. Carting uses it by default. If you need to work with your projects in old Xcode versions, use -f file option.

๐ŸšจNote: be sure to have no uncommitted changes in project file to prevent project parsing errors ๐Ÿ˜ฑ.

Project parsing error

Run carting --help to see available commands:

OVERVIEW: ๐Ÿš˜ Simple tool for updating Carthage script phase

USAGE: Carting <command> <options>

SUBCOMMANDS:
  info                    Prints Carthage frameworks list with linking description.
  lint                    Lint the project for missing paths.
  update                  Adds a new script with input/output file paths or updates the script named `Carthage`.

Linting

Integrate Carting into an Xcode scheme to get errors displayed in the IDE. Just add a new "Run Script Phase" with:

/usr/local/bin/carting lint

Run Script Phase

Installing

Homebrew (recommended):

$ brew tap artemnovichkov/projects
$ brew install carting

Mint:

$ mint run artemnovichkov/Carting

Make:

$ git clone https://github.com/artemnovichkov/carting.git
$ cd Carting
$ make

Swift Package Manager:

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/artemnovichkov/carting", majorVersion: 1)
    ]
)

Author

Artem Novichkov, novichkoff93@gmail.com

License

Carting is available under the MIT license. See the LICENSE file for more info.

Github

link
Stars: 135
Help us keep the lights on

Used By

Total: 0

Releases

2.0.2 - Jul 29, 2019

Fixed:

  • Paths to the project file

2.0.1 - Jul 29, 2019

Fixed:

  • Default path to project file. Related to #54.

2.0 - Jul 29, 2019

Added:

  • Parsing project files with Xcodeproj
  • Reading enviroment variables

1.4.1 - Jul 16, 2019

Fixed:

  • Wrap filenames via double quote on chmod shell command. Thanks to @getogrand.

1.4 - Jul 15, 2019

Added:

  • Project linting. Closes #16
  • Disable manual editing of xcfilelists. Closes #36