I am extraordinarily shocked this query wasn’t requested, or at the very least I wasn’t capable of finding it.
Is there a solution to set up command line instruments for MacOS with out putting in the complete XCode suite? I am low on storage and I discover it onerous to swallow that I’ve to unlock 20+ GB simply to have the ability to do:
$ python -m http.server
Particularly since python is already put in…
EDIT #2: This was simply an instance, my query is about xcode cli instruments.
I need to have the ability to use make, gcc, set up brew packages and many others…
EDIT: Replying to the commant and why I feel “python is put in”
Easy: Every little thing was working, till I uninstalled XCode to unlock 11GB that I wanted (and I do not use XCode in any respect). Additionally:
$ which python3
/usr/bin/python3
$ ls -lh /usr/bin/python3
-rwxr-xr-x 76 root wheel 163K Could 9 2022 /usr/bin/python3
$ file /usr/bin/python3
/usr/bin/python3: Mach-O common binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64
- Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e
- Mach-O 64-bit executable arm64e]
/usr/bin/python3 (for structure x86_64): Mach-O 64-bit executable x86_64
/usr/bin/python3 (for structure arm64e): Mach-O 64-bit executable arm64e
$ hexdump -C /usr/bin/python3 | head
00000000 ca fe ba be 00 00 00 02 01 00 00 07 00 00 00 03 |............|
00000010 00 00 40 00 00 01 0c f0 00 00 00 0e 01 00 00 0c |..@............|
00000020 80 00 00 02 00 01 80 00 00 01 0c d0 00 00 00 0e |...............|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00004000 cf fa ed fe 07 00 00 01 03 00 00 00 02 00 00 00 |............|
00004010 12 00 00 00 40 06 00 00 85 00 20 00 00 00 00 00 |....@..... .....|
00004020 19 00 00 00 48 00 00 00 5f 5f 50 41 47 45 5a 45 |....H...__PAGEZE|
00004030 52 4f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |RO..............|
00004040 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 |................|
$ md5sum /usr/bin/python3
fac4668657765c8dfe89d8995acfb5a2 /usr/bin/python3
$ python3 -m http.server
xcrun: error: invalid lively developer path (/Library/Developer/CommandLineTools), lacking xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
PS: I do know this reply exists nevertheless it assumes I get to decide on something after operating xcode-select --install which hasn’t been the case since Large Sur so far as I do know
