Cannot inject - operation not permitted (MacOS)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- go, macos
- Domain
- cli, operating-systems
Research direction
Start by reproducing bdcli install --channel stable on macOS Tahoe and capture the failure while writing to /Applications/Discord.app/Contents/Resources. Compare the CLI behavior with the linked Installer issue; done means identifying the cause of the permission failure and confirming that installation succeeds without the reported error.
Written by the indexing model from the issue text.
Description
Using MacOS Tahoe 26.6.2 (latest).
Upon update to v1.0.0 it showed multiple "cannot verify it's free of malware" prompts, and even after allowing it through Privacy & Security it's still showing an error when injecting.
🛠 Preparing BetterDiscord...
✅ Directory exists: /Users/choccy/Library/Application Support/BetterDiscord/data
✅ Directory exists: /Users/choccy/Library/Application Support/BetterDiscord/plugins
✅ Directory exists: /Users/choccy/Library/Application Support/BetterDiscord/themes
✅ BetterDiscord prepared for install
📥 Downloading BetterDiscord...
✅ Downloaded BetterDiscord version v1.14.0 from the official website
✅ BetterDiscord downloaded
✅ Discord is not running.
🔌 Injecting into Discord...
❌ Cannot write to /Applications/Discord.app/Contents/Resources
open /Applications/Discord.app/Contents/Resources/.bd-write-probe-351104156: operation not permitted
Error: installation failed: open /Applications/Discord.app/Contents/Resources/.bd-write-probe-351104156: operation not permitted
Here's what I got when I uninstalled and reinstalled:
==> Installing Cask bdcli
==> Linking Binary 'bdcli' to '/opt/homebrew/bin/bdcli'
Warning: An exception occurred within a child process:
RuntimeError: Failed to generate bash completions from /opt/homebrew/Caskroom/bdcli/1.0.0/bdcli: Failure while executing; `\{\"SHELL\"\ =\>\ \"bash\"\} /opt/homebrew/Caskroom/bdcli/1.0.0/bdcli completion completion bash` was terminated by uncaught signal KILL. Here's the output:
Failed to generate zsh completions from /opt/homebrew/Caskroom/bdcli/1.0.0/bdcli: Failure while executing; `\{\"SHELL\"\ =\>\ \"zsh\"\} /opt/homebrew/Caskroom/bdcli/1.0.0/bdcli completion completion zsh` was terminated by uncaught signal KILL. Here's the output:
Failed to generate fish completions from /opt/homebrew/Caskroom/bdcli/1.0.0/bdcli: Failure while executing; `\{\"SHELL\"\ =\>\ \"fish\"\} /opt/homebrew/Caskroom/bdcli/1.0.0/bdcli completion completion fish` exited with 1. Here's the output:
Failed to generate pwsh completions from /opt/homebrew/Caskroom/bdcli/1.0.0/bdcli: Failure while executing; `\{\"SHELL\"\ =\>\ \"pwsh\"\} /opt/homebrew/Caskroom/bdcli/1.0.0/bdcli completion completion powershell` exited with 1. Here's the output:
Then got these two password prompts twice (4x total):
"git-credential-osxkeychain wants to use your confidential information stored in "github.com" in your keychain."
"git-credential-oskeychain wants to access key "github.com" in your keychain."
Allowing all of them and running bdcli install --channel stable leads to the first "operation not permitted" error.
When trying the installer app, I get the same result as this issue from the installer repo.
- Dominant language
- Go
- Stars
- 22
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BetterDiscord/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
BetterDiscord/cli#9 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
BetterDiscord/cli#8 · 11 comments ·
All issues in BetterDiscord/cli
Similar issues
-
area/docs kind/documentation priority/backlog triage/accepted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
lexfrei/cloudflare-tunnel-gateway-controller#943 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
keyxmakerx/Chronicle#967 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
[E2E Scenario Tests] HTTP logs capture export requests from test framework, polluting golden filesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
GoogleCloudPlatform/k8s-config-connector#13675 ·
Maintainers usually reply within 1 day