XcodesOrg / XcodesOrg/xcodes

Permission denied as a standard user

Open
#259 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
4.8k
Forks
182
Avg merge
2d 12h
Merged PRs (30d)
1

Description

When using xcodes under a standard user (non-admin), the installation into /Applications will fail.

Downloading with aria2 (/Users/ci/homebrew/bin/aria2c)
(1/6) Downloading Xcode 14.2.0+14C18: 99 %
(2/6) Unarchiving Xcode (This can take a while)
Using regular unxip. Try passing `--experimental-unxip` for a faster unxip process
(3/6) Moving Xcode to /Applications/Xcode-14.2.0.app
“Xcode” couldn’t be moved because you don’t have permission to access “Applications”.

I suggest to ask for the credentials of an admin account and to execute the moving operation under this user.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the installation step that moves the downloaded Xcode app into /Applications, then reproduce it as a standard macOS user. The work is done when installation can handle the permission failure by requesting administrator credentials and completing the move, with coverage for the non-admin case if the project has a relevant test path.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, swift
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.