We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32f65ec commit ddbad7dCopy full SHA for ddbad7d
1 file changed
README.md
@@ -1,5 +1,27 @@
1
# node-xcode
2
3
-> parser for xcodeproj/project.pbxproj files
+> parser/toolkit for xcodeproj project files
4
5
-Not much to see yet
+Allows you to edit xcodeproject files and write them back out.
6
+
7
+## Example
8
9
+ // API is a bit wonky right now
10
+ var xcode = require('xcode'),
11
+ fs = require('fs'),
12
+ projectPath = 'myproject.xcodeproj/project.pbxproj',
13
+ myProj = xcode.project(projectPath);
14
15
+ // parsing is async, in a different process
16
+ myProj.parse(function (err) {
17
+ myProj.addHeaderFile('foo.h');
18
+ myProj.addSourceFile('foo.m');
19
+ myProj.addFramework('FooKit.framework');
20
21
+ fs.writeFileSync(projectPath, myProj.writeSync());
22
+ console.log('new project written');
23
+ });
24
25
+## License
26
27
+MIT
0 commit comments