I received an e-mail from someone – a couple already – who told me that some of my scripts are broken. Specifically scripts like debugMachKernel.sh that use nm. It appears that Xcode 7.3 (7D175) no longer supports the -s argument. Or not like it did before:
nm -x -Ps __TEXT __text -arch x86_64 /System/Library/Kernels/kernel
Right. That no longer works, and dumps this error message:
../nm: for the -s option: bad number of arguments (must be two arguments).
Removing the -s __TEXT __text part works:
nm -Px -arch x86_64 /System/Library/Kernels/kernel
And running it like that will only take a few milliseconds longer. Anyway. For the few that ran into this, and were too lazy to report the error… now you know how to work around this bug.
Update: I worked around this problem by moving the -s __TEXT __text arguments to after the filename.
nm -Px -arch x86_64 /System/Library/Kernels/kernel -s __TEXT __text