Skip to content

Building from Source

soifaxa edited this page Oct 24, 2026 · 1 revision

Building from Source

Requirements

  • macOS 14 or later
  • Xcode 16+ (or current Xcode with macOS 14 SDK)
  • XcodeGen (brew install xcodegen)

Generate the Xcode project

From the repository root:

xcodegen generate
open ExtractPromptImage.xcodeproj

Run from Xcode with ⌘R.

Release build (command line)

xcodegen generate
xcodebuild \
  -scheme ExtractPromptImage \
  -configuration Release \
  -derivedDataPath build/release \
  build

The .app is under:

build/release/Build/Products/Release/Extract Prompt Image.app

Ad-hoc sign if needed:

codesign --force --deep --options runtime --sign - \
  "build/release/Build/Products/Release/Extract Prompt Image.app"

Project layout

Path Role
project.yml XcodeGen project definition
ExtractPromptImage/ SwiftUI app sources
ExtractPromptImage/Services/PromptExtractor.swift Metadata / prompt parsing
Fixtures/ Sample images for manual tests

How it works (overview)

  1. Read PNG text chunks (tEXt / iTXt / zTXt) and ImageIO properties
  2. Detect A1111, ComfyUI, NovelAI, InvokeAI, or EXIF-style payloads
  3. Surface prompts and parameters in the UI; keep raw JSON in the Raw tab

Clone this wiki locally