Skip to content

mpon/xgodeproj

Repository files navigation

xgodeproj

Description

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

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

$ xgodeproj show
$ xgodeproj show --project Sample

show section information

$ xgodeproj show --section <section name>
$ xgodeproj show --section <section name> --project Sample

Install

To install, use go get:

$ go get -d github.com/mpon/xgodeproj

Contribution

  1. Fork (https://github.com/mpon/xgodeproj/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

mpon

About

parse xcodeproj/project.pbxproj

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages