I'm trying to update software on my Mac Studio.
Here are hardware that I have:
Chip: Apple M1 Max
Memory: 32GB
HDD: 500GB
OS: macOS Sonoma 14.7.2
I need to update XCode to version 26.*
In software prerequisites I have found info, that I need OS version > 15.6
So I run softwareupdate.
In output of softwareupdate -l I have two options:
Title: macOS Sonoma 14.8.4, Version: 14.8.4, Size: 1842424KiB, Recommended: YES, Action: restart
Title: macOS Tahoe 26.3, Version: 26.3, Size: 10817535KiB, Recommended: YES, Action: restart
Then I choose to update my OS to macOS Tahoe 26.3, so I run
sudo softwareupdate -iR 'macOS Tahoe 26.3-25D125' --force --agree-to-license
and get following exception in output:
Software Update Tool
Finding available software
Downloading macOS Tahoe 26.3
Password:
Downloaded: macOS Tahoe 26.3
Restarting...
2026-02-18 09:48:48.497 softwareupdate[46104:515137] Checking App: (null)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(
0 CoreFoundation 0x000000018104a2cc __exceptionPreprocess + 176
1 libobjc.A.dylib 0x0000000180b2e158 objc_exception_throw + 60
2 CoreFoundation 0x0000000180f5b818 -[__NSPlaceholderArray initWithObjects:count:] + 620
3 CoreFoundation 0x0000000180fb956c __createArray + 48
4 CoreFoundation 0x0000000180fb9520 +[NSArray arrayWithObject:] + 32
5 login 0x000000018f705470 -[LFQuitUtilities LFGUIAppsToQuit:] + 204
6 login 0x000000018f7021e4 SACLOGUIAppsToQuit + 44
7 OSUpdate 0x00000001a6776c44 +[SUOSUUtilities appNamesThatWillPreventRestart] + 64
8 OSUpdate 0x00000001a6735dd8 -[SUOSUUpdateController queueUpdatesForPostLogoutInstallWithProductKeys:descriptors:overrides:postLogoutOptions:withError:] + 3628
9 OSUpdate 0x00000001a6734f5c -[SUOSUUpdateController queueUpdatesForPostLogoutInstallWithProductKeys:descriptors:overrides:options:withError:] + 160
10 OSUpdate 0x00000001a6734e48 -[SUOSUUpdateController queueUpdatesForPostLogoutInstallWithProductKeys:descriptors:nowIsLater:restartingNow:forceRestart:skipFLO:allowSplatPassengers:withError:] + 468
11 softwareupdate 0x000000010076c130 softwareupdate + 33072
12 softwareupdate 0x000000010076a6fc softwareupdate + 26364
13 softwareupdate 0x0000000100767540 softwareupdate + 13632
14 dyld 0x0000000180b6b154 start + 2476
)
libc++abi: terminating due to uncaught exception of type NSException
Abort trap: 6
What can be the cause of the exception and what are my options to solve it and update my OS?
Note, that I don't even try to code it myself, I use built-in update tools.