원클릭으로
swift-sandbox-exec
On macOS, pass --disable-sandbox to swift build/test/package when running inside Codex sandbox.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
On macOS, pass --disable-sandbox to swift build/test/package when running inside Codex sandbox.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Inspect language and package-manager directories that are safely rebuildable and generate or apply Codex sandbox_workspace_write.writable_roots entries. Use when configuring Codex writable roots for Gradle, Maven, SwiftPM, Go, Cargo, NuGet, Python, Node, Deno, Kotlin/JVM compile daemon, Kotlin Native, vcpkg, or similar rebuildable toolchain paths.
Use when editing files in Codex and the agent needs reliable apply_patch syntax
| name | swift-sandbox-exec |
| description | On macOS, pass --disable-sandbox to swift build/test/package when running inside Codex sandbox. |
| metadata | {"short-description":"Disable SwiftPM nested sandbox-exec for Codex macOS sandbox"} |
This skill is a companion to codex-writable-roots. Together they cover the
two sides of making Swift work inside Codex's sandbox on macOS: filesystem
access (writable roots) and process sandboxing (this skill).
Codex uses macOS App Sandbox (Seatbelt) to isolate command execution. The
macOS kernel does not allow a process already inside a sandbox to call
sandbox-exec to nest another sandbox.
SwiftPM calls sandbox-exec internally during swift build and swift test.
When run inside Codex's sandbox (sandbox_mode = "workspace-write" or
"read-only"), these nested calls fail with:
Sandbox: sandbox_exec(..., deny) - the process is already sandboxed
When running Swift commands on macOS inside a Codex session with sandbox_mode
workspace-write or read-only, add --disable-sandbox:
swift build --disable-sandbox
swift test --disable-sandbox
swift package --disable-sandbox <subcommand>
--disable-sandbox tells SwiftPM to skip its own sandbox-exec call.codex-writable-roots skill.--disable-sandbox.sandbox_exec(..., deny), this is the
cause.--disable-sandbox on macOS -- it is harmless to
non-sandboxed sessions and fixes the problem when sandboxed.