|
| 1 | +."pcpg(1) man page |
| 2 | +."put together by Gregory John Casamento |
| 3 | +."Copyright (C) 2025 Free Software Foundation, Inc. |
| 4 | +." |
| 5 | +."Process this file with |
| 6 | +."groff -man -Tascii pcpg.1 |
| 7 | +." |
| 8 | +.TH PCPG 1 "December 2025" GNUstep "GNUstep System Manual" |
| 9 | +.SH NAME |
| 10 | +pcpg \- parse Xcode project plists and generate placeholder class code |
| 11 | +.SH SYNOPSIS |
| 12 | +.B pcpg |
| 13 | +.I project.pbxproj |
| 14 | +.SH DESCRIPTION |
| 15 | +The |
| 16 | +.B pcpg |
| 17 | +utility is a small helper that reads an Xcode project property list (the |
| 18 | +.I project.pbxproj |
| 19 | +inside a .xcodeproj bundle) and infers the classes referenced by the |
| 20 | +.IB objects |
| 21 | +section. For every class it sees, it emits paired header and source files in |
| 22 | +the current working directory containing ivar declarations and simple getter |
| 23 | +and setter methods. This is intended as a metatool to help the libs-xcode |
| 24 | +maintainer map unknown or missing classes when parsing Xcode projects. |
| 25 | +.PP |
| 26 | +.B pcpg |
| 27 | +expects a single argument: the path to the plist or project file to inspect. |
| 28 | +If no argument is provided it exits without generating output. |
| 29 | +.SH OUTPUT |
| 30 | +For each class discovered, |
| 31 | +.B pcpg |
| 32 | +writes |
| 33 | +.I ClassName.h |
| 34 | +and |
| 35 | +.I ClassName.m |
| 36 | +files alongside where the tool was invoked. These stubs include imports for |
| 37 | +referenced types and generate minimal accessor methods based on the keys and |
| 38 | +value types found in the plist. |
| 39 | +.SH EXAMPLES |
| 40 | +Invoke the tool against a project file inside a bundle: |
| 41 | +.PP |
| 42 | +.I pcpg MyApp.xcodeproj/project.pbxproj |
| 43 | +.PP |
| 44 | +Generate stubs from a standalone plist snapshot: |
| 45 | +.PP |
| 46 | +.I pcpg /tmp/project-dump.plist |
| 47 | +.SH BUGS |
| 48 | +The tool currently accepts only one positional argument and performs no |
| 49 | +validation beyond loading the plist. If the input is malformed or incomplete, |
| 50 | +the generated stubs may be unusable. Report issues on the libs-xcode tracker. |
| 51 | +.SH HISTORY |
| 52 | +.B pcpg |
| 53 | +was written in August 2011 as an internal exploration tool and remains |
| 54 | +lightweight and experimental. |
| 55 | +.SH AUTHORS |
| 56 | +.B pcpg |
| 57 | +was written by Gregory John Casamento <greg.casamento@gmail.com>. |
| 58 | +.P |
| 59 | +This man page was written by Gregory John Casamento. |
0 commit comments