بنقرة واحدة
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.