@raydeck/xcode

2.2.1 • Public • Published

@raydeck/xcode

Ray Deck's fork fo the amazing work the Cordova team and [Alan Lunny]((https://github.com/alunny/node-xcode) before them put in on the pbxproject parser module. Building block for doing a lot more to support the manipulation of Xcode projects from javascript - expecially for react native

Example

// API is a bit wonky right now
const xcode = require('xcode'),
const { writeFileSync } = fs = require('fs'),
const projectPath = 'myproject.xcodeproj/project.pbxproj',
const myProj = xcode.project(projectPath);
// parsing is async, in a different process
myProj.parseSync()
myProj.addHeaderFile('foo.h');
myProj.addSourceFile('foo.m');
myProj.addFramework('FooKit.framework');
writeFileSync(projectPath, myProj.writeSync());
console.log('new project written');

License

Apache V2

Readme

Keywords

none

Package Sidebar

Install

npm i @raydeck/xcode

Weekly Downloads

1,547

Version

2.2.1

License

Apache-2.0

Unpacked Size

229 kB

Total Files

16

Last publish

Collaborators

  • raydeck