镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Bridge: pin the Objective-C API inventory and build gate #157

Closed

Description

@chrisbbreuer

Parent: #138
Depends on: #135 and #137

Pin the declared macOS Objective-C JavaScriptCore surface before implementation so bridge completeness is exact and auditable.

Acceptance:

  • Check in the macOS 27.0 / SDK build 26A5368g JSContext.h, JSValue.h, JSVirtualMachine.h, JSManagedValue.h, and JSExport.h target inventory with source hashes.
  • Inventory every targeted Objective-C class, protocol, initializer, method, property, category, macro, and availability boundary with no hidden declarations.
  • Add an audit tool that rejects checked-in header drift, duplicate/missing entries, invalid status values, and unlinked unfinished entries.
  • Check in compatible Objective-C umbrella headers and explicit platform/version gates; unsupported hosts or SDK revisions fail clearly.
  • Add a macOS-only Objective-C compile-link smoke target without imposing Objective-C/Foundation on non-macOS C/Zig consumers.
  • Document the declared target and reproduction commands in README and API docs.

Activity

  1. chrisbbreuer commented on Jul 17, 2026

    @chrisbbreuer
    MemberAuthor

    Foundation pushed in two reviewable chunks: 11ffd37 pins normalized installable copies plus raw/normalized SDK hashes, 11 containers, and 108 selector/signature-level declarations; 9ef5672 adds the Apple-only umbrella and ARC/blocks compile gate.

    Passing gates:

    • zig build objc-api-audit
    • zig build test-objc-api-headers
    • live SDK comparison against macOS 27.0 build 26A5368g
    • unchanged 117/117 C API audit and real C/C++ hosts

    The compile-link-runtime checkbox remains open until #158 provides real Objective-C class symbols; the current gate is deliberately named test-objc-api-headers.

  2. chrisbbreuer commented on Jul 17, 2026

    @chrisbbreuer
    MemberAuthor

    Completed through d06e264. The pinned macOS 27.0 / 26A5368g inventory now drives header drift, real ARC/blocks header compilation, and a macOS Objective-C compile-link-runtime host (zig build test-objc-api) without adding Foundation requirements to non-macOS or plain C consumers. Current runtime coverage is tracked separately in #158 at 32 implemented / 76 pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions