Apache Cordova - Xcode Node

Clone this repo:
  1. 3033cd8 chore(deps): bump the gh-actions-patch-minor group across 1 directory with 2 updates (#183) by dependabot[bot] · 3 days ago master
  2. 31e32fc chore(workflow): update upload-to-atr action (#184) by エリス · 4 days ago
  3. ca2c32a chore(deps): bump @xmldom/xmldom from 0.9.10 to 0.9.12 (#185) by dependabot[bot] · 8 days ago
  4. 0920ebc chore(deps): bump codecov/codecov-action from 4.6.0 to 7.0.0 (#182) by dependabot[bot] · 2 weeks ago
  5. ba44143 chore(deps): bump the gh-actions-patch-minor group with 2 updates (#181) by dependabot[bot] · 2 weeks ago

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