[BUG] cannot whitelist some commands
Resolved 💬 6 comments Opened Nov 3, 2025 by paquettej Closed Feb 4, 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?
Claude always asks to run xcodebuild and does not give me a way to whitelist it:
Bash command
xcodebuild test -project "someproject.xcodeproj" -scheme "redacted" -destination 'platform=iOS Simulator,name=iPhone 16 Pro'
-only-testing:"someprpojectFractionModelTests/testEquality" -only-testing:"redacted"
-only-testing:"redacted" 2>&1 | grep -E "(Test Suite.*tests.*passed|Test Suite.*tests.*failed|BUILD)" | tail -5
Verify all 3 tests pass
Do you want to proceed?
❯ 1. Yes
2. No, and tell Claude what to do differently (esc)
from .claude/settings.local.json:
``{``
"permissions": {
"allow": [
"Bash(xcodebuild test:*)",
"Bash(xcrun simctl list:*)",
"Bash(xcodebuild:*)",
"Bash(find:*)",
...
}
What Should Happen?
Claude should ask if I want to allow this command as it does for other commands
Error Messages/Logs
Steps to Reproduce
/shrug use Claude code with Xcode?
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.31
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗