forked fromapache/cordova-node-xcode
- Notifications
You must be signed in to change notification settings - Fork0
Athorcis/cordova-node-xcode
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Parser utility for xcodeproj project files
Allows you to edit xcodeproject files and write them back out.
based on donated code fromalunny / node-xcode
// API is a bit wonky right nowvarxcode=require('xcode'),fs=require('fs'),projectPath='myproject.xcodeproj/project.pbxproj',myProj=xcode.project(projectPath);// parsing is async, in a different processmyProj.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');});
If there's a problem parsing, you will want to edit the grammar underlib/parser/pbxproj.pegjs. You can test it online with the PEGjs online thingyathttps://pegjs.org/online - I have had some mixed results though.
Tests under thetest/parser directory will compile the parser from thegrammar. Other tests will use the prebuilt parser (lib/parser/pbxproj.js).
To rebuild the parser js file after editing the grammar, run:
npm run pegjs(and be sure to restore the Apache license notice inlib/parser/pbxproj.js before committing)
Apache V2
About
Apache cordova
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Languages
- JavaScript98.3%
- PEG.js1.5%
- Makefile0.2%
