commit | af20a96ab7b93bfae1f89a8433dd1cf6137eaede | [log] [tgz] |
---|---|---|
author | Andrew Lunny <alunny@twitter.com> | Tue Jun 18 15:53:47 2013 -0700 |
committer | Andrew Lunny <alunny@twitter.com> | Tue Jun 18 15:53:47 2013 -0700 |
tree | 1564d985f796f8a0a74d32069f0b0ff71ff02868 | |
parent | c4be849817aa8c327600bed2b39bc29bb15d54d4 [diff] |
fix for #11
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