2121
2222# nativescript-dev-xcode
2323
24- <!--
25- [](https://nodei.co/npm/xcode/)
26- -->
27- [ ![ Build Status] ( https://travis-ci.org/NativeScript/nativescript-dev-xcode.svg?branch=master )] ( https://travis-ci.org/apache/cordova-node-xcode )
28-
2924Parser utility for xcodeproj project files
3025
3126Allows you to edit xcodeproject files and write them back out.
@@ -36,19 +31,19 @@ Forked from: [apache/cordova-node-xcode](https://github.com/apache/cordova-node-
3631
3732``` js
3833// API is a bit wonky right now
39- var xcode = require (' xcode' ),
40- fs = require (' fs ' ),
41- projectPath = ' myproject.xcodeproj/project.pbxproj' ,
42- myProj = xcode .project (projectPath);
34+ var xcode = require (" xcode" ),
35+ fs = require (" fs " ),
36+ projectPath = " myproject.xcodeproj/project.pbxproj" ,
37+ myProj = xcode .project (projectPath);
4338
4439// parsing is async, in a different process
4540myProj .parse (function (err ) {
46- myProj .addHeaderFile (' foo.h' );
47- myProj .addSourceFile (' foo.m' );
48- myProj .addFramework (' FooKit.framework' );
49-
50- fs .writeFileSync (projectPath, myProj .writeSync ());
51- console .log (' new project written' );
41+ myProj .addHeaderFile (" foo.h" );
42+ myProj .addSourceFile (" foo.m" );
43+ myProj .addFramework (" FooKit.framework" );
44+
45+ fs .writeFileSync (projectPath, myProj .writeSync ());
46+ console .log (" new project written" );
5247});
5348```
5449
@@ -63,7 +58,9 @@ grammar. Other tests will use the prebuilt parser (`lib/parser/pbxproj.js`).
6358
6459To rebuild the parser js file after editing the grammar, run:
6560
66- npm run pegjs
61+ ```
62+ npm run pegjs
63+ ```
6764
6865(and be sure to restore the Apache license notice in
6966` lib/parser/pbxproj.js ` before committing)
0 commit comments