Skip to content

Bump objc-rs pin to 0.3 so tvOS/watchOS/visionOS can link #652

Open

Description

@benface

Follow-up to #651 (tvOS build support, merged — thanks!).

miniquad currently pins:

objc = { package = "objc-rs", version = "0.2" }

objc-rs 0.2.8 selects its Objective-C runtime with any(target_os = "macos", target_os = "ios"), so on tvOS / watchOS / visionOS it falls through to the GNUstep backend and linking against Apple SDKs fails with:

Undefined symbol: _objc_msg_lookup

That's a GNUstep symbol; Apple's runtime provides _objc_msgSend instead.

The predicate was widened to target_vendor = "apple" in raphamorim/objc-rs#3, but that merged on the 0.3.x line. Published versions are 0.2.8, 0.3.0, 0.3.1, so the "0.2" pin resolves to 0.2.8 and still has the old cfg. The result is that #651 makes miniquad compile for tvOS but a downstream app still can't link.

Two ways to close the gap:

  1. Bump this pin to 0.3 — I'm happy to open a PR if you're open to it. I don't yet know how much of the 0.2 → 0.3 API surface miniquad touches; I'd check and report before proposing anything.
  2. Stay on 0.2 and get a 0.2.9 backport published — I've asked about that in Please cut a 0.2.9 with the tvOS/watchOS/visionOS runtime fix backported raphamorim/objc-rs#4.

Either resolves it; I filed both so you and raphamorim can pick whichever you'd rather. Happy to do the legwork on whichever path you prefer.

Verified locally: with the cfg widened, aarch64-apple-tvos and aarch64-apple-tvos-sim both build and link, and a macroquad-based game runs on the tvOS Simulator.

Activity

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