Contents

lynnswap/privateheaderkit

日本語

Quick Start

curl -fsSL https://github.com/lynnswap/PrivateHeaderKit/releases/latest/download/install.sh | sh

The installer is not written to the current directory.

If the installer prints a Next steps block, follow it instead of the command below. Otherwise run:

privateheaderkit

Choose a source, then generate all targets or enter specific framework, bundle, or dylib names. PrivateHeaderKit writes to ~/PrivateHeaderKit by default and prints the exact Headers directory for the generated files. Generated headers are grouped by platform and exact source, for example generated-headers/iOS/27.0_beta_24A5390f.

The installer does not edit shell profiles.

Build from Source

Build and run the source installer from the checkout:

git clone https://github.com/lynnswap/PrivateHeaderKit.git
cd PrivateHeaderKit
swift run -c release privateheaderkit-install

The installer builds privateheaderkit and three internal helpers from the same checkout. It accepts the same --prefix and --bindir options as install.sh.

Install Options

<details> <summary>Custom directories</summary>

Install the command in ~/bin:

curl -fsSL https://github.com/lynnswap/PrivateHeaderKit/releases/latest/download/install.sh | sh -s -- --bindir ~/bin

</details>

Automation

The no-argument command is the recommended interactive path. For scripts, pass all generation inputs explicitly:

privateheaderkit \
  --platform macOS \
  --version "$(sw_vers -productVersion)" \
  --build "$(sw_vers -buildVersion)" \
  --system-root / \
  --out ~/PrivateHeaderKit \
  --target AppKit,Foundation
privateheaderkit \
  --platform iOS \
  --version 27.0 \
  --out ~/PrivateHeaderKit \
  --target SwiftUI,UIKit
privateheaderkit \
  --platform watchOS \
  --version 27.0 \
  --out ~/PrivateHeaderKit \
  --target WatchKit

Use privateheaderkit --help for the complete option list. Replace each example version with an installed runtime version. If more than one runtime for the selected platform matches a version, add --build <build>.

Documentation

License

PrivateHeaderKit is available under the MIT License.

Package Metadata

Repository: lynnswap/privateheaderkit

Default branch: main

README: README.md