[pbxProject] "plugin" option to addResourceFile

restores behaviour changed by aa3bd6b
2 files changed
tree: 5bc1016c1af1f3c12d5e12ab0b9b5da6316e4a1d
  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