Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Unable to install Command Line Tools for Xcode-14.2 using softwareupdate on MacOS 12.6.1

Dear community members,


From the documentation, Command line tools for xcode 14.2 should work on MacOS 12.5+. However as of today 14 Dec 2022 i am unable to install command line tools for xcode 14.2 using softwareupdate. Older version works just fine including 14.0. Any idea what could be wrong here? I don't get much help from the errors in logs.


touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
softwareupdate -i "$(softwareupdate -l | grep "\*.*Command Line" | tail -n 1 | sed 's/^[^C]* //')"

Software Update Tool
Finding available software
Downloading Command Line Tools for Xcode
Done.

Error installing updates.



logs from /var/log/install.log


```

2022-12-14 07:36:27-08 server-C07DM1AYPJJ9 softwareupdated[275]: Adding client SUUpdateServiceClient pid=642, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2022-12-14 07:36:27-08 server-C07DM1AYPJJ9 softwareupdated[275]: SoftwareUpdate: request for status for unknown product MSU_UPDATE_22C65_patch_13.1
2022-12-14 07:36:27-08 server-C07DM1AYPJJ9 softwareupdated[275]: SUOSUServiceDaemon: Adding client: (null) (pid = 642, uid = 501, path = /System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager, connection remote object interface = <NSXPCInterface: 0x7fc0f3910f10>, exported interface = <NSXPCInterface: 0x7fc1043bd3c0>, remote object proxy = <__NSXPCInterfaceProxy_SUOSUServiceClientProtocol: 0x7fc0f39be300>)
2022-12-14 07:36:27-08 server-C07DM1AYPJJ9 softwareupdated[275]: SULocalProduct: 012-92431 is not completely downloaded (1 remaining).  Package(s) <PKDistributionPackageReference com.apple.pkg.CLTools_macOS_SDK> not found:
2022-12-14 07:36:27-08 server-C07DM1AYPJJ9 softwareupdated[275]: Changing status (local product not fully downloaded)) for key 012-92431 from "waiting to install" to "waiting to download"


```


Thanks for the help in advance.

Mac mini 2018 or later

Posted on Dec 14, 2022 9:08 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 15, 2022 1:50 AM

Thank you Hoffman for your feedback. I was able to install using dmg package.


It looks like i overlooked some important logs, in our setup we use cache and command line tools for xcode 14.2 was corrupted.


Purging the cache helped me to resolve the issue.


2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Starting download of CLTools_macOSNMOS_SDK.pkg (Size:51817937, HasIntegrityInformation:NO) with URL http://10.xx.xx.xxx:50695/content/downloads/03/28/012-92431-A_FKICGWU4EK/eflw1v4c64sgmvux4ljc083cfjj663wu9g/CLTools_macOSNMOS_SDK.pkg?source=swcdn.apple.com&sourceScheme=https
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Starting download of CLTools_Executables.pkg (Size:507485226, HasIntegrityInformation:NO) with URL http://10.xx.xx.xxx:50695/content/downloads/03/28/012-92431-A_FKICGWU4EK/eflw1v4c64sgmvux4ljc083cfjj663wu9g/CLTools_Executables.pkg?source=swcdn.apple.com&sourceScheme=https
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Starting download of CLTools_SwiftBackDeploy.pkg (Size:95067698, HasIntegrityInformation:NO) with URL http://10.xx.xx.xxx:50695/content/downloads/03/28/012-92431-A_FKICGWU4EK/eflw1v4c64sgmvux4ljc083cfjj663wu9g/CLTools_SwiftBackDeploy.pkg?source=swcdn.apple.com&sourceScheme=https
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Starting download of CLTools_macOSLMOS_SDK.pkg (Size:49698902, HasIntegrityInformation:NO) with URL http://10.xx.xx.xxx:50695/content/downloads/03/28/012-92431-A_FKICGWU4EK/eflw1v4c64sgmvux4ljc083cfjj663wu9g/CLTools_macOSLMOS_SDK.pkg?source=swcdn.apple.com&sourceScheme=https
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Starting download of CLTools_macOS_SDK.pkg (Size:5404, HasIntegrityInformation:NO) with URL http://10.xx.xx.xxx:50695/content/downloads/03/28/012-92431-A_FKICGWU4EK/eflw1v4c64sgmvux4ljc083cfjj663wu9g/CLTools_macOS_SDK.pkg?source=swcdn.apple.com&sourceScheme=https
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: PackageKit: Failed to verify CLTools_macOS_SDK.pkg: xar_verify failed
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Error downloading package CLTools_macOS_SDK.pkg due to error:((null)). Retrying for attempt #1.
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Starting download of CLTools_macOS_SDK.pkg (Size:5404, HasIntegrityInformation:NO) with URL http://10.xx.xx.xxx:50695/content/downloads/03/28/012-92431-A_FKICGWU4EK/eflw1v4c64sgmvux4ljc083cfjj663wu9g/CLTools_macOS_SDK.pkg?source=swcdn.apple.com&sourceScheme=https
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: PackageKit: Failed to verify CLTools_macOS_SDK.pkg: xar_verify failed
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Error downloading package CLTools_macOS_SDK.pkg due to error:((null)). Retrying for attempt #2.


Similar questions

2 replies
Question marked as Top-ranking reply

Dec 15, 2022 1:50 AM in response to MrHoffman

Thank you Hoffman for your feedback. I was able to install using dmg package.


It looks like i overlooked some important logs, in our setup we use cache and command line tools for xcode 14.2 was corrupted.


Purging the cache helped me to resolve the issue.


2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Starting download of CLTools_macOSNMOS_SDK.pkg (Size:51817937, HasIntegrityInformation:NO) with URL http://10.xx.xx.xxx:50695/content/downloads/03/28/012-92431-A_FKICGWU4EK/eflw1v4c64sgmvux4ljc083cfjj663wu9g/CLTools_macOSNMOS_SDK.pkg?source=swcdn.apple.com&sourceScheme=https
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Starting download of CLTools_Executables.pkg (Size:507485226, HasIntegrityInformation:NO) with URL http://10.xx.xx.xxx:50695/content/downloads/03/28/012-92431-A_FKICGWU4EK/eflw1v4c64sgmvux4ljc083cfjj663wu9g/CLTools_Executables.pkg?source=swcdn.apple.com&sourceScheme=https
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Starting download of CLTools_SwiftBackDeploy.pkg (Size:95067698, HasIntegrityInformation:NO) with URL http://10.xx.xx.xxx:50695/content/downloads/03/28/012-92431-A_FKICGWU4EK/eflw1v4c64sgmvux4ljc083cfjj663wu9g/CLTools_SwiftBackDeploy.pkg?source=swcdn.apple.com&sourceScheme=https
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Starting download of CLTools_macOSLMOS_SDK.pkg (Size:49698902, HasIntegrityInformation:NO) with URL http://10.xx.xx.xxx:50695/content/downloads/03/28/012-92431-A_FKICGWU4EK/eflw1v4c64sgmvux4ljc083cfjj663wu9g/CLTools_macOSLMOS_SDK.pkg?source=swcdn.apple.com&sourceScheme=https
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Starting download of CLTools_macOS_SDK.pkg (Size:5404, HasIntegrityInformation:NO) with URL http://10.xx.xx.xxx:50695/content/downloads/03/28/012-92431-A_FKICGWU4EK/eflw1v4c64sgmvux4ljc083cfjj663wu9g/CLTools_macOS_SDK.pkg?source=swcdn.apple.com&sourceScheme=https
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: PackageKit: Failed to verify CLTools_macOS_SDK.pkg: xar_verify failed
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Error downloading package CLTools_macOS_SDK.pkg due to error:((null)). Retrying for attempt #1.
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Starting download of CLTools_macOS_SDK.pkg (Size:5404, HasIntegrityInformation:NO) with URL http://10.xx.xx.xxx:50695/content/downloads/03/28/012-92431-A_FKICGWU4EK/eflw1v4c64sgmvux4ljc083cfjj663wu9g/CLTools_macOS_SDK.pkg?source=swcdn.apple.com&sourceScheme=https
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: PackageKit: Failed to verify CLTools_macOS_SDK.pkg: xar_verify failed
2022-12-15 08:38:40+01 server-C07DM1AYPJJ9 softwareupdated[273]: 012-92431: Error downloading package CLTools_macOS_SDK.pkg due to error:((null)). Retrying for attempt #2.


Unable to install Command Line Tools for Xcode-14.2 using softwareupdate on MacOS 12.6.1

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