chore(deps-dev): bump brace-expansion from 1.1.15 to 1.1.18 (#179) Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.15 to 1.1.18. - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.15...v1.1.18) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 1.1.18 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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
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'); });