[pbxProject] first pass at #hasFile method
3 files changed
tree: e8c0776ba01f999d9e880128c6aab1a45f8d2a28
  1. lib/
  2. test/
  3. .gitignore
  4. AUTHORS
  5. index.js
  6. LICENSE
  7. Makefile
  8. package.json
  9. README.md
README.md

node-xcode

parser/toolkit for xcodeproj project files

Allows you to edit xcodeproject files and write them back out.

Example

// API is a bit wonky right now
var xcode = require('xcode'),
    fs = require('fs'),
    projectPath = 'myproject.xcodeproj/project.pbxproj',
    myProj = xcode.project(projectPath);

// parsing is async, in a different process
myProj.parse(function (err) {
    myProj.addHeaderFile('foo.h');
    myProj.addSourceFile('foo.m');
    myProj.addFramework('FooKit.framework');
    
    fs.writeFileSync(projectPath, myProj.writeSync());
    console.log('new project written');
});

License

MIT