This library parses xcodeproj/project.pbxproj file.
You can see the project hierarchy from cli.
$ 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.
- PBXBuildFile
- PBXContainerItemProxy
- PBXFileReference
- PBXFrameworksBuildPhase
- PBXGroup
- PBXNativeTarget
- PBXProject
- PBXResourcesBuildPhase
- PBXSourcesBuildPhase
- PBXTargetDependency
- PBXVariantGroup
- XCBuildConfiguration
- XCConfigurationList
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.
$ xgodeproj show
$ xgodeproj show --project Sample
$ xgodeproj show --section <section name>
$ xgodeproj show --section <section name> --project Sample
To install, use go get
:
$ go get -d github.com/mpon/xgodeproj
- Fork (https://github.com/mpon/xgodeproj/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes - Run
gofmt -s
- Create a new Pull Request