pbxproj
XCode Project manipulation library for Python
What it is and what it does
pbxproj is a Python library for programmatic manipulation of Xcode project files (.pbxproj). It parses and modifies the project configuration without requiring Xcode to be open, enabling automation of repetitive tasks like adding source files, adjusting build settings, and configuring linker flags. The library works with Xcode 4 and later projects, reading the project file format and exposing a Python API to make changes that would otherwise require manual UI interaction.
The package depends on docopt for command-line interface support and openstep-parser to handle the underlying file format. It's designed for developers who need to script Xcode project modifications as part of build pipelines, CI/CD workflows, or project generation tools. The library maintains the project file structure correctly so that Xcode recognizes the changes on subsequent loads.
Use it for:
- Automate adding source files to an Xcode project as part of a code generation or build script.
- Set compiler flags and linker options programmatically without manual Xcode configuration.
- Generate or modify Xcode projects in CI/CD pipelines for automated builds and testing.
- Batch-modify build settings across multiple targets or projects in a single script.
- Integrate project file changes into custom build tools or project scaffolding utilities.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Reads, modifies, and writes Xcode .pbxproj project files programmatically, allowing automation of tasks like adding files and setting compiler flags without opening Xcode.
Yes, if you need to automate Xcode project modifications. The package has low install friction, permissive licensing, and no known vulnerabilities. However, the aging maintenance status (last release 191 days ago) means you should verify compatibility with your specific Xcode version before relying on it for critical workflows. For one-off scripting or established projects, it remains a practical choice.
Install
pbxproj on PyPI
pip
pip install pbxprojuv
uv add pbxprojpoetry
poetry add pbxprojInstalling pbxproj
Before you install
Low install friction with only two runtime dependencies (docopt and openstep-parser). Last release was 191 days ago; maintenance status is aging, so expect slower response to issues but the package remains functional for current use.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely as long as you include the license notice.
Quickstart
from pbxproj import XcodeProject
project = XcodeProject.load('myapp.xcodeproj/project.pbxproj')
project.add_file('MyClass.swift', force=False)
project.add_other_ldflags('-ObjC')
project.save()
Requires Python 3.10 or later.
Verify before relying
- Scope of supported Xcode versions beyond '4+' and whether recent Xcode formats remain compatible.
- Whether the aging maintenance status affects compatibility with current Xcode releases.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — docopt, openstep-parser |
| Maintenance | aging — 191 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 89,095/month — #13,681 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pbxproj-4.3.3-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
openstep-parserParses Xcode project files (OpenStep format)…
permissive · top 15,000 on PyPI
fb-idbA command-line and Python client for automating…
permissive · top 15,000 on PyPI
developer-disk-imageFetches Apple's DeveloperDiskImage files…
copyleft · top 15,000 on PyPI
python-editorProgrammatically open your system's $EDITOR…
permissive · top 5,000 on PyPI
tableauhyperapiAutomate creation, reading, and modification of…
permissive · top 5,000 on PyPI
pyobjc-framework-AppleScriptObjCProvides Python bindings to Apple's…
permissive · top 15,000 on PyPI
docxCreates, reads, and writes Microsoft Office…
unclear · top 15,000 on PyPI
pyobjcPyObjC bridges Python and Objective-C, enabling…
permissive · top 15,000 on PyPI
pkgconfpkgconf is a cross-platform Python package that…
permissive · top 15,000 on PyPI
python-docxpython-docx reads, creates, and modifies…
permissive · top 1,000 on PyPI