Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mpon/xgodeproj
parse xcodeproj/project.pbxproj
https://github.com/mpon/xgodeproj
Last synced: 24 days ago
JSON representation
parse xcodeproj/project.pbxproj
- Host: GitHub
- URL: https://github.com/mpon/xgodeproj
- Owner: mpon
- License: mit
- Created: 2015-08-13T07:59:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-16T17:06:51.000Z (about 9 years ago)
- Last Synced: 2024-06-19T02:02:25.362Z (5 months ago)
- Language: Go
- Homepage:
- Size: 176 KB
- Stars: 25
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# xgodeproj
## Description
This library parses xcodeproj/project.pbxproj file.
You can see the project hierarchy from cli.
```bash
$ xgodeproj show --section PBXGroup
+ Sample
AppDelegate.swift
ViewController.swift
Images.xcassets
+ Supporting Files
Info.plist
+ SampleTests
SampleTests.swift
+ Supporting Files
Info.plist
+ Products
Sample.app
SampleTests.xctest
```See already implemented list to parse pbxproj.
- [x] PBXBuildFile
- [ ] PBXContainerItemProxy
- [x] PBXFileReference
- [ ] PBXFrameworksBuildPhase
- [x] PBXGroup
- [x] PBXNativeTarget
- [ ] PBXProject
- [x] PBXResourcesBuildPhase
- [x] PBXSourcesBuildPhase
- [ ] PBXTargetDependency
- [x] PBXVariantGroup
- [ ] XCBuildConfiguration
- [ ] XCConfigurationList## Usage
Execute this command in your root dir for Xcode project or workspace.
It automatically and recursively finds the `project.pbxproj` file to parse.
Also, you can specify project name when you have some projects in workspace.### show all section name
```bash
$ xgodeproj show
$ xgodeproj show --project Sample
```### show section information
```bash
$ xgodeproj show --section
$ xgodeproj show --section --project Sample
```## Install
To install, use `go get`:
```bash
$ go get -d github.com/mpon/xgodeproj
```## Contribution
1. Fork ([https://github.com/mpon/xgodeproj/fork](https://github.com/mpon/xgodeproj/fork))
1. Create a feature branch
1. Commit your changes
1. Rebase your local changes against the master branch
1. Run test suite with the `go test ./...` command and confirm that it passes
1. Run `gofmt -s`
1. Create a new Pull Request## Author
[mpon](https://github.com/mpon)