• Stars
    star
    226
  • Rank 176,514 (Top 4 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created almost 13 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

tools and utilities for working with xcode/ios projects

This project has been contributed to the Apache Cordova project and will be maintained in its new home there. Please update your upstreams, forks, and pull requests


node-xcode

parser/toolkit for xcodeproj project files

Allows you to edit xcodeproject files and write them back out.

Example

// 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');
});

Working on the parser

If there's a problem parsing, you will want to edit the grammar under lib/parser/pbxproj.pegjs. You can test it online with the PEGjs online thingy at http://pegjs.majda.cz/online - I have had some mixed results though.

Tests under the test/parser directory will compile the parser from the grammar. Other tests will use the prebuilt parser (lib/parser/pbxproj.js).

To rebuild the parser js file after editing the grammar, run:

./node_modules/.bin/pegjs lib/parser/pbxproj.pegjs

(easier if ./node_modules/.bin is in your path)

License

Apache V2

More Repositories

1

ChildBrowser

cross-platform ChildBrowser plugin for PhoneGap/Cordova
Java
104
star
2

cordova-plugin-spec

experimental specification for Cordova plugins
43
star
3

pluginstall

programmatically install apache cordova plugins
JavaScript
43
star
4

r_fast_r_furious

easily validate movie titles from the fast and the furious saga
JavaScript
38
star
5

Pigeon

cross-platform mobile Twitter App developed using PhoneGap
JavaScript
33
star
6

pegjs-vim

vim syntax highlight for PEG.js grammars
Vim Script
32
star
7

sleight

static files! fake xhrs! etc
JavaScript
31
star
8

stopgap

pretend you're using phonegap
JavaScript
23
star
9

ScreenDim

cordova plugin for disabling screen dimming
Java
21
star
10

three20

now-defunct fork of three20 -- please see facebook/three20 for most/all purposes
Objective-C
17
star
11

confetti

generate mobile app config files
Ruby
14
star
12

functional-geometry-canvas

port of Frank Buss's implementation of Peter Henderson's Functional Geometry
JavaScript
13
star
13

phonegap-battery-status

Java
7
star
14

reflight

rethinking flight
JavaScript
4
star
15

manolo

man pages and stuff
JavaScript
3
star
16

ios-couch-phonegap-helloworld

this barely works. you can safely ignore it.
JavaScript
3
star
17

alunny.github.com

a github page for me
2
star
18

blogs.nitobi.com

my de-wordpressed blog at nitobi.com
Ruby
2
star
19

writter-server

server for phonegap demo apps
Ruby
2
star
20

phonegap-grabber

pull down all the versions of phonegap, just like that
Ruby
2
star
21

cordova-ios

Objective-C
2
star
22

crx-patterns

match chrome extension url globs/patterns
JavaScript
2
star
23

zstream

streaming zip/unzip for node.js
JavaScript
2
star
24

commonplace.js

commonplace book of JavaScript scraps
Python
1
star
25

if_statement

a monumentally dumb rails plugin
Ruby
1
star
26

nu-project

project for nathansuniversity.com. fun!
JavaScript
1
star
27

crx-headers

set custom headers in chrome dev panel
JavaScript
1
star
28

webkittery

things that bug me about mobile webkit
1
star
29

quall

library for writing node services on SQS
JavaScript
1
star
30

npm-repl

browserified repls for npm repos
JavaScript
1
star
31

ncallbacks

do a function n times
JavaScript
1
star
32

self

issues you have with me
1
star