xcode
parser for xcodeproj/project.pbxproj files
Last updated 9 years ago by stevegill .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install xcode 
SYNC missed versions from official npm registry.

cordova-node-xcode

npm - Latest GitHub

GitHub - Node Workflow GitHub - Release Audit Workflow Code Coverage

Parser utility for xcodeproj project files

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

based on donated code from alunny / node-xcode

Example

const fs = require('node:fs');
const xcode = require('xcode');

// Path to the Xcode project's project.pbxproj file.
const projectPath = 'myproject.xcodeproj/project.pbxproj';
// Create a PBXProject instance for the project.
const myProj = xcode.project(projectPath);

// Parse the project file asynchronously before making changes.
myProj.parse(function (err) {
    myProj.addHeaderFile('foo.h');
    myProj.addSourceFile('foo.m');
    myProj.addFramework('FooKit.framework');
   
    // Write the updated project back to disk.
    fs.writeFileSync(projectPath, myProj.writeSync());

    console.log('New project written');
});

Current Tags

1519 Versions

Downloads
Total 1,536
Today 40
This Week 334
This Month 743
Last Day 14
Last Week 112
Last Month 777
Dependencies (3)
Dev Dependencies (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE