A pbxproj parser and builder for Xcode project files, currently at version 0.0.3. Uses Chevrotain for fast, spec-compliant parsing, including support for the Data type (<xx xx xx>) missing in alternatives like the Cordova xcode package. Implements a port of the Apple CFOldStylePlist parser for accurate string handling. API is experimental and subject to breaking changes. Active development, release cadence irregular. Best for TypeScript projects needing typed pbxproj manipulation without PEG.js performance overhead.
npm install xcparseVerified import paths — ran on the pinned version, not inferred.
Parses a .pbxproj file into a JSON representation, then rebuilds it back to a string after modification.
Pin to exact version and watch for changelog before upgrading.
Use 'xcparse' in import statements.
Consider using xcparse only in build tools, not in browser bundles.
Currently no built-in UUID generation; you must supply your own for new objects.
Ensure you're running in Node.js and use 'import fs from 'node:fs';' for modern Node versions.
parse returns an object directly, not a JSON string. Do not call JSON.parse on it.
Run 'yarn add xcparse' or 'npm install xcparse' and double-check the import name.
No dependency data recorded yet.