Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artemnovichkov/carting
π A simple tool for updating Carthage script phase
https://github.com/artemnovichkov/carting
carthage homebrew swift swift-package-manager swift-script xcode
Last synced: about 1 month ago
JSON representation
π A simple tool for updating Carthage script phase
- Host: GitHub
- URL: https://github.com/artemnovichkov/carting
- Owner: artemnovichkov
- License: mit
- Created: 2017-07-01T11:28:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-02T09:45:14.000Z (over 3 years ago)
- Last Synced: 2024-12-14T20:34:29.780Z (about 2 months ago)
- Topics: carthage, homebrew, swift, swift-package-manager, swift-script, xcode
- Language: Swift
- Homepage:
- Size: 6.93 MB
- Stars: 184
- Watchers: 4
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Do you use [Carthage](https://github.com/Carthage/Carthage)? Are you feel tired of adding special script and the paths to frameworks (point 4, 5 and 6 in [Getting Started guide](https://github.com/Carthage/Carthage#getting-started)) manually? Me too. Carting does it for you. It scans Carthage folder and linked frameworks, gets framework names and updates the script.
## 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 π±.
Run `carting --help` to see available commands:
```bash
OVERVIEW: π Simple tool for updating Carthage script phaseUSAGE: 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:
```bash
/usr/local/bin/carting lint
```
## Installing
### Homebrew (recommended):
```bash
$ brew tap artemnovichkov/projects
$ brew install carting
```### [Mint](https://github.com/yonaskolb/mint):
```bash
$ mint run artemnovichkov/carting
```### Make:
```bash
$ git clone https://github.com/artemnovichkov/carting.git
$ cd Carting
$ make
```### Swift Package Manager:
```swift
let package = Package(
dependencies: [
.Package(url: "https://github.com/artemnovichkov/carting", majorVersion: 2)
]
)
```
## AuthorArtem Novichkov, https://www.artemnovichkov.com/about
## License
Carting is available under the MIT license. See the LICENSE file for more info.