[BUG] sandbox blocking IOKit GPU access on macOS / Metal.

Resolved 💬 2 comments Opened Mar 21, 2026 by dforsten Closed Apr 19, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

MTLCreateSystemDefaultDevice() Fails in a sandboxed session, succeeds as soon as I deactivate the sandbox in Claude Code on MacOS.

What Should Happen?

Code using the GPU via Metal should work in sandboxed mode the same way as in non-sandboxed mode.

Error Messages/Logs

Steps to Reproduce

Execute any Objective C++ code trying to initialize Metal on MacOS.

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.81

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗