Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devxoul/swiftproj
A command-line tool for managing Xcode project with Swift Package Manager.
https://github.com/devxoul/swiftproj
carthage swift-package-manager xcode
Last synced: 9 days ago
JSON representation
A command-line tool for managing Xcode project with Swift Package Manager.
- Host: GitHub
- URL: https://github.com/devxoul/swiftproj
- Owner: devxoul
- License: mit
- Created: 2017-10-21T11:24:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-22T15:33:22.000Z (about 7 years ago)
- Last Synced: 2024-05-08T22:45:18.779Z (6 months ago)
- Topics: carthage, swift-package-manager, xcode
- Language: Ruby
- Size: 32.2 KB
- Stars: 15
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swiftproj
[![Gem](https://img.shields.io/gem/v/swiftproj.svg)](https://rubygems.org/gems/swiftproj)
[![Build Status](https://travis-ci.org/devxoul/Swiftproj.svg?branch=master)](https://travis-ci.org/devxoul/Swiftproj)
[![Codecov](https://img.shields.io/codecov/c/github/devxoul/Swiftproj.svg)](https://codecov.io/gh/devxoul/Swiftproj)A command-line tool for managing Xcode project with Swift Package Manager. I wrote this to make it easy to deploy to Carthage in a Swift Package Manager only project.
## Basic Usage
```console
$ swiftproj help
version Displays the current version of swiftproj
help Displays this help message
configure-scheme Configures a scheme to have buildable targets only
add-systemframework Adds a system framework to an existing target
remove-framework Removes a framework from a target
generate-xcconfig Generates a Xcode project file
generate-xcodeproj Generates a xcconfig file from podspec file
```## Example
This is an example of generating Xcodeproj file and archiving for Carthage release.
```console
$ swiftproj generate-xcconfig --podspec URLNavigator.podspec
$ swiftproj generate-xcodeproj --xcconfig-overrides Config.xcconfig
$ swiftproj add-system-framework \
--project URLNavigator.xcodeproj \
--target QuickSpecBase \
--framework Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework
$ swiftproj configure-scheme \
--project URLNavigator.xcodeproj \
--scheme URLNavigator-Package \
--targets URLNavigator,URLMatcher
$ carthage build --no-skip-current
$ carthage archive URLNavigator URLMatcher
```## Installation
```console
$ gem install swiftproj
```## License
Swiftproj is under MIT license. See the [LICENSE](LICENSE) for more info.