Swiftpack.co - artemnovichkov/Carting as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
artemnovichkov/Carting 2.1.6
๐Ÿš˜ A simple tool for updating Carthage script phase
โญ๏ธ 185
๐Ÿ•“ 27 weeks ago
.package(url: "https://github.com/artemnovichkov/Carting.git", from: "2.1.6")


Make 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


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>

  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`.


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


Homebrew (recommended):

$ brew tap artemnovichkov/projects
$ brew install carting


$ mint run artemnovichkov/carting


$ 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: 2)


Artem Novichkov, https://www.artemnovichkov.com/about


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


Stars: 185
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jackโ€™d and SCRUFF. We are two of the worldโ€™s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

27 weeks ago


  • Support for Application Extensions via @RustyKnight. Related to #65.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics