commit | 98628fe482b52e9c47f5af7eecd62a8b2a0ee3b6 | [log] [tgz] |
---|---|---|
author | alunny <alunny@gmail.com> | Sun Oct 14 21:39:02 2012 -0700 |
committer | alunny <alunny@gmail.com> | Sun Oct 14 21:39:02 2012 -0700 |
tree | 5bc1016c1af1f3c12d5e12ab0b9b5da6316e4a1d | |
parent | a5da62142b21fec7fc6aacd1269e80c433525a6d [diff] |
[pbxProject] "plugin" option to addResourceFile restores behaviour changed by aa3bd6b
parser/toolkit for xcodeproj project files
Allows you to edit xcodeproject files and write them back out.
// 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'); });
MIT