[BUG] Bash running "xcodebuild test" not respecting allowed permissions
Resolved 💬 2 comments Opened Feb 20, 2026 by AnthonyMDev Closed Feb 20, 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?
This looks like it should have been fixed by https://github.com/anthropics/claude-code/issues/1271, but it's still an issue for me.
My repo's ./claude/settings.local.json:
{
"permissions": {
"allow": [
"Bash(xcodebuild:*)",
"Bash(gh pr list:*)",
"Bash(file:*)",
"Bash(ls:*)",
"Bash(code --list-extensions:*)",
"Bash(xcrun xcresulttool:*)",
"Bash(echo:*)",
"Bash(swift build:*)",
"Bash(grep:*)",
"WebFetch(domain:github.com)",
"Bash(git log:*)",
"Bash(claude:*)"
],
"deny": [],
"ask": []
}
}
Claude always asks for permission when it runs the following command:
Bash xcodebuild test -workspace MyWorkspace.xcworkspace -scheme UnitTests -testPlan UnitTestPlan -destination 'platform=macOS' -only-testing:"UnitTests/SingleTest" 2>&1 | grep -E "(Test case|TEST SUCCEEDED|TEST FAILED|error:)"
What Should Happen?
Claude should be allowed to run xcodebuild test without asking permission.
Error Messages/Logs
Steps to Reproduce
Create a settings.json in an Xcode project and include:
{
"permissions": {
"allow": [
"Bash(xcodebuild:*)",
]
}
}
Ask Claude to run tests. It asks for permission
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
1.0.124 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
This is happening for me when running Claude Code via the macOS Claude Desktop app.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗