Skip to content

Latest commit

 

History

History
64 lines (34 loc) · 1.82 KB

README.md

File metadata and controls

64 lines (34 loc) · 1.82 KB

MELPA

License: MIT

xcode-project

A package for Emacs which parses Xcode project files.

Features

  • Parse Xcode project file (project.pbxproj)
  • Extract information about targets, build configurations, build phases, build settings and files etc.

Usage

To obtain the parsed project object (alist):

(xcode-project-read PATH-TO-XCODEPROJ)

Helper to locate the Xcode project (.xcodeproj) path for any given source file:

(xcode-project-find-xcodeproj PATH-TO-FILE)

Then extract information such as targets, build phases, configurations and files.

Most functions return an object (alist), unless otherwise described (e.g. `xcode-project-target-names').

Some functions have optional arguments for further filtering (e.g. filter targets by type or name).

Targets:

(xcode-project-targets PROJ)
(xcode-project-target-names PROJ)

Build Phases:

(xcode-project-build-phases PROJ TARGET-NAME)

Build Configurations:

(xcode-project-build-config-names PROJ)
(xcode-project-build-config PROJ CONFIG-NAME TARGET-NAME)

Build Settings:

(xcode-build-config-setings' CONFIG)

Build files - as objects:

(xcode-project-build-files' PROJ TARGET-NAME)

Build files - as paths (relative to project):

(xcode-project-build-file-paths' PROJ TARGET-NAME)

Installation

If you're an Emacs 24 user or you have a recent version of package.el, you can install xcode-project.el from the MELPA or the MELPA Stable repository.

License

This software is licensed under the GNU GPLv3 License

See the LICENSE file for details.