• Stars
    star
    184
  • Rank 209,187 (Top 5 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🚘 A simple tool for updating Carthage script phase

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

Author

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

License

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

More Repositories

1

iOS-11-by-Examples

👨🏻‍💻 Examples of new iOS 11 APIs
Swift
3,318
star
2

Swift-For-Scripting

📋A hand-curated collection of useful and informative Swift Scripting materials.
288
star
3

SwiftUI-by-Examples

Examples of new SwiftUI framework
Swift
195
star
4

wwdc20-samplecode

Sample Code for WWDC20
Swift
126
star
5

wwdc21-samplecode

Sample Code for WWDC21
Swift
96
star
6

swift-project-template

🍪 Easily generate Swift projects with Cookiecutter
Swift
88
star
7

zepcode

⚗️ Zeplin extension that generates Swift snippets from colors, fonts, and layers
JavaScript
80
star
8

awesome-swift-async-await

A hand-curated list of Swift async/await resources. Feel free to contribute!
77
star
9

spasibo

🙏 Support your favourite open source projects
Swift
77
star
10

CustomPopupExample

An example of creating custom popups in SwiftUI
Swift
46
star
11

figma-preview

Add Figma design to your Xcode Preview
Swift
37
star
12

SpoilerViewExample

An example of implementing spoiler feature from Telegram in SwiftUI
Swift
34
star
13

RaySo

Share your awesome code to https://ray.so with Xcode Extension.
Swift
34
star
14

ColorStripe

Control RGB stripes with SwiftUI+Combine
Swift
30
star
15

sasha

👨‍💼Reduce daily routine with sasha
Swift
30
star
16

StickerViewExample

An example of remove background from image in SwiftUI
Swift
29
star
17

cARd

Flip your card with ARKit
Swift
27
star
18

awesome-swift-macros

A hand-curated list of Swift macros. Feel free to contribute!
26
star
19

wwdc24-samplecode

Sample Code for WWDC24
Swift
26
star
20

xcode-timing

CLI tool and scripts for collecting Xcode build times
Swift
17
star
21

TransitionRouter

🚡 Simple custom transition framework
Swift
14
star
22

ShazamKitExample

An example app with using ShazamKit
Swift
13
star
23

GithubContributionGraphExample

Recreation of the contribution graph from GitHub using Swift Charts
Swift
13
star
24

awesome-swift-charts

A hand-curated list of Swift Charts resources. Feel free to contribute!
12
star
25

OfflineDataAsyncExample

An example of using async/await in Swift 5.5
Swift
10
star
26

action-homebrew

Dockerfile
10
star
27

shortcut-box

👨‍💻 Update a pinned gist to contain random IDE shortcut
Swift
10
star
28

swift-package-template

Base template for Swift Package Manager projects
Swift
9
star
29

SwiftUIKit

Make UIKit components in SwiftUI style
Swift
8
star
30

fastfood

🍔🍟 Share Fastfile between projects
Swift
7
star
31

Sheet

An example of using multiple sheets in SwiftUI
Swift
7
star
32

xcode-snippets

My Xcode snippets
Shell
7
star
33

UsageDescriptionCheckExample

Example project for an article "Swift, Plist and Two Smoking Scripts".
Swift
7
star
34

ResultBuilderExample

An example of using result builders for action sheets in SwiftUI
Swift
6
star
35

FileSharingExample

Inspect Documents folder via Files.app
Swift
6
star
36

stylin

⚗️ Zeplin extension that generates text style snippets.
JavaScript
6
star
37

device-support

🛒 Automate Device Support updating
Shell
6
star
38

UIKeyboardLayoutGuideExample

Working with UIKeyboardLayoutGuide in iOS 15
Swift
5
star
39

teacode-expanders

Expanders for Teacode http://www.apptorium.com/teacode
4
star
40

splash

🏊🏻 Test different app layouts with only one device
Swift
4
star
41

AsyncImageExample

Working with AsyncImage in iOS 15: placeholders, errors, success!
Swift
4
star
42

ShareEnvironmentExample

An example of using custom @Environment value for share actions
Swift
4
star
43

Animatronic

High-performance working with image animation in Swift.
Swift
3
star
44

duty-bot

🤖 Slack-бот для ведения графика дежурства по микроволновой печи
Swift
3
star
45

polarmanager

Framework for working with heart rate monitors (Polar, Wahoo etc).
Objective-C
3
star
46

blog

My blog about Swift development
MDX
3
star
47

OfflineDataExample

An example of working with web content offline in SwiftUI apps.
Swift
3
star
48

action-zem

GitHub Action for Zeplin Extension Manager
Dockerfile
3
star
49

liftoff-templates

Templates for liftoff, CLI for creating and configuring new Xcode projects
Swift
3
star
50

pokemon-bot

Slack bot for notification about finding pokemons
Swift
2
star
51

zeplin-extension-template

⚗️ Template for Zeplin Extensions
JavaScript
2
star
52

swiftlint-rules

Swift
1
star
53

concurrency-lists

Swift
1
star
54

GithubSearch

Swift
1
star
55

like-playlists

Python
1
star
56

UsingPlayground

👶 Demo how to use Playground
Swift
1
star
57

tabtabus-2021

1
star
58

formatter

Java
1
star
59

Paws

Swift
1
star