xcodebuild repeatedly trying to install, keeps asking for password.

I recently upgraded to macOS Ventura. I keep getting a prompt that says, "xcodebuild is trying to install Apple software. Enter your password to allow this." I enter my password. The prompt goes away. However, later that day and the next day, the same prompt appears attempting to install Apple software and asks for my password again.


How do I get xcodebuild to successfully install Apple software so that this prompt stops appearing?


Again, this started happening when I upgraded to macOS Ventura.


Any help is appreciated, thank you!

iMac 27″, macOS 13.4

Posted on Aug 1, 2023 11:30 AM

Reply
7 replies

Aug 3, 2023 9:48 AM in response to JRMello78

JRMello78 wrote:

I recently upgraded to macOS Ventura. I keep getting a prompt that says, "xcodebuild is trying to install Apple software. Enter your password to allow this." I enter my password. The prompt goes away. However, later that day and the next day, the same prompt appears attempting to install Apple software and asks for my password again.

How do I get xcodebuild to successfully install Apple software so that this prompt stops appearing?

Again, this started happening when I upgraded to macOS Ventura.

Any help is appreciated, thank you!



Xcode 14.3.1 Release14E300c1 Jun 2023


https://xcodereleases.com/



The Xcode ~12GB installer must decompress to run plus temporary storage and final storage requirement. You will need ~100 GB of free storage available to use Xcode.



Try starting the update using the command line,

this will bypass the secure token/owner check from the Software Update settings pane, copy & paste:

sudo softwareupdate -i -a -R


-i Install

-a All appropriate updates

-R Automatically restart (or shut down) if required to complete installation)



uninstall issues—Xcode - Support - Apple Developer

Uninstall xcode 10 | Apple Developer Forums





Oct 31, 2023 9:43 AM in response to VisconteDimezzato

VisconteDimezzato wrote:

I have the same issue and I get /Applications/Xcode.app/Contents/Developer when I type "xcode-select -p". Should I get something different?


Normal. Here is the default path for a recent version of the Apple Xcode developer tools, with Xcode installed.


% xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
% xcodebuild -version
Xcode 14.3.1
Build version 14E300c
% 


For typical recent activities, I'd expect Xcode 14.3.1 or Xcode 15.0.1 in use, on macOS 13 or macOS 14.


If you're not running current Xcode 14 or Xcode 15, and current macOS 13 or macOS 14, get there, and check again.


It is possible to install the command-line tools without Xcode installed, though—as I mentioned a while back—there at least once used to be a bug with that, as the command-line tools had a silent dependency on a directory that only an Xcode install had created. I think that bug has been fixed with newer command-line tools.

Aug 6, 2023 8:48 PM in response to leroydouglas

Thank you for your reply.


The update was already installed. This was a macOS update that appeared in the "software updates" section of my Apple settings. After the update, this Xcode thing keeps popping up on its own. I'm not trying to go out of my way to try and install it, it just keeps appearing. Seems like a bug. I have well over 100 GB of space. Unless Xcode is mandatory, I just want this prompt to stop appearing.





This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

xcodebuild repeatedly trying to install, keeps asking for password.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.