Cupertino Sample Code Corpus

June 5, 2026 · View on GitHub

Apple Developer sample projects collected for use with Cupertino, a local Apple documentation crawler and MCP server written in Swift.

This repository is a working corpus, not an official Apple distribution. It is useful for indexing, search experiments, documentation tooling, and quickly opening real Apple sample projects in Xcode.

Contents

  • 606 Apple Developer sample-code projects.
  • Coverage across SwiftUI, UIKit, AppKit, ARKit, RealityKit, Metal, AVFoundation, Core ML, Vision, HealthKit, MapKit, Core Data, SwiftData, visionOS, and many other Apple frameworks.
  • Cleaned project directories with nested .git, DerivedData, and build artifacts removed.
  • Directory names normalized for use by Cupertino's indexer.

Requirements

This repository stores large assets with Git LFS. Install and initialize LFS before cloning:

brew install git-lfs
git lfs install

Usage

git clone https://github.com/mihaelamj/cupertino-sample-code.git
cd cupertino-sample-code

Then open any sample project directly in Xcode:

open swiftui-fruta-sample/Fruta.xcodeproj

The checkout is large because many Apple samples include images, models, videos, and other bundled assets.

Cupertino

Cupertino uses this corpus as one source of practical Apple-platform context alongside Apple documentation, Swift Evolution proposals, symbol graphs, and selected Swift package sources.

Related repositories:

License

See LICENSE.

Copyright © 2024 Apple Inc.