Need help with Carting?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

artemnovichkov
182 Stars 12 Forks MIT License 261 Commits 5 Opened issues

Description

🚘 A simple tool for updating Carthage script phase

Services available

!
?

Need anything else?

Contributors list

# 14,313
Swift
github-...
Objecti...
framewo...
105 commits
# 173,550
Xcode
Homebre...
Swift
spm
5 commits
# 89,725
gnss
specifi...
travis
executa...
2 commits
# 39,439
Swift
Objecti...
swift4
propert...
1 commit
# 260,336
Objecti...
Swift
carthag...
Homebre...
1 commit
# 250,529
Go
React
TypeScr...
React N...
1 commit
# 22,653
Objecti...
Swift
ios11
image-p...
1 commit

Carting

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

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

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

Author

Artem Novichkov, [email protected]

License

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.