Post

Replies

Boosts

Views

Created

Why does Apple keep uninstalling Command Line Tools with every update?
So, I'm installing the Big Sur betas. With every beta, some Apple process uninstalls (or deletes) CommandLineTools (CLT). Yesterday, my system looked like this: Xcode: 12.4.0.0.1.1610135815 CommandLineTools: 12.4.0.0.1.1610135815 Today - prior to installing the latest beta, 11.3 beta 8, I checked for the existence of CLT. CLT was gone. Xcode: 12.4.0.0.1.1610135815 CommandLineTools: not installed 1) Why is this happening? 2) Is there a way to prevent this? After the beta is installed, I simply reinstall the same CLT I had previously. .
3
0
1.2k
Apr ’21
Problems with 16" MBP - Big Sur 11.3 beta - kernel panic
Running 11.3 beta 8. System hangs on shutdown (usually takes 4.5/5 minutes) This has been happening for a while (at least since Big Sur 11.1). Booted to recovery and ran first aid on all partitions. Only received errors on Macintosh HD - Data: Running First Aid on “Macintosh HD - Data” (disk2s2) Repairing file system. Volume was successfully unmounted. Performing fsck_apfs -y -x /dev/rdisk2s2 Checking the container superblock. Checking the EFI jumpstart record. Checking the space manager. Checking the space manager free queue trees. warning: Unable to read apfs keylocker ranges: No such file or directory Checking the object map. Checking volume. Checking the APFS volume superblock. Checking the object map. Checking the snapshot metadata tree. Checking the snapshot metadata. Checking the extent ref tree. Checking the fsroot tree. warning: Cross Check : Mismatch between extentref entry reference count (1) and calculated fsroot entry reference count (0) for extent (18406479 + 13) warning: Cross Check : Mismatch between extentref entry reference count (1) and calculated fsroot entry reference count (0) for extent (95055863 + 216) warning: Cross Check : Mismatch between extentref entry reference count (1) and calculated fsroot entry reference count (0) for extent (95058867 + 883) Verifying allocated space. Performing deferred repairs. The volume /dev/rdisk2s2 appears to be OK. File system check exit code is 0. Restoring the original state found as mounted. Operation successful. 1) "Unable to read apfs keylocker ranges". Is this a problem? 2) Are the cross check mismatch errors something that can be 'fixed' with first aid? I've booted to recovery mode, ran first aid 3 times, errors persist. I have Apple Care (and backups). Wanting to know if this indicates I should replace my internal HD? Thank you.
2
0
2.0k
Apr ’21
Building SampleFireall.app from WWDC 2019 on Big Sur Xcode 12.4
Watching this - https://developer.apple.com/videos/play/wwdc2019/714 Anyone succesfully build this - https://developer.apple.com/documentation/networkextension/filtering_network_traffic with the tools/versions in the title? I get a bunch of Redefinition of module 'AppleTextureEncoder' in module.modulemap. In addition to AppleTextureEncoder I see: 'Compression' 'Darwin' 'asl' 'dnssd' 'launch' 'os' 'os_object' 'os_workgroup' (and on and on). Finally, build fails with: "No such module 'NetworkExtension'.
1
0
720
May ’21
Environment variables for launchctl daemons
I'm trying to start an emacs 27.2 daemon on Big Sur with the following plist: <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>gnu.emacs.daemon</string> <key>ProgramArguments</key> <array> <string>/Users/me/src/gnu-emacs/27/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs</string> <string>--bg-daemon</string> </array> <key>RunAtLoad</key> <true/> <key>ServiceDescription</key> <string>Gnu Emacs Daemon</string> </dict> </plist> The process starts fine and I'm able to access the process. However, the path for the application launched is not the past from .zshrc. If I start the application from terminal or Finder, the app loads -AND- the path is as expected. How do I add an environment variable (such as PATH) to a LaunchAgent?
1
0
3.2k
Jun ’21
Programmatically determine version of Xcode installed
Prior to Ventura betas, I was able to determine the version of Xcode and CLT with the following script: # https://apple.stackexchange.com/questions/180957/determine-xcode-command-line-tools-version # This worked on Big Sur (ARM) 11.1 beta # Xcode if pkgutil --pkgs=com.apple.pkg.Xcode >/dev/null; then echo Xcode: $(pkgutil --pkg-info=com.apple.pkg.Xcode | awk '/version:/ {print $2}') else echo Xcode: not installed fi # Command Line Tools for Xcode if pkgutil --pkgs=com.apple.pkg.CLTools_Executables >/dev/null; then echo CommandLineTools: $(pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | awk '/version:/ {print $2}') else echo CommandLineTools: not installed fi Working with the Ventura 13.0 beta (22A5321d), I have Xcode 14.0 beta 5 (14A5294e) installed as well as CLT 14.0.0.0.1.1658620134. The output of the above script tells me that Xcode is not installed. Xcode was installed from the developer downloads (not the App Store). Xcode: not installed CommandLineTools: 14.0.0.0.1.1658620134 Has something changed with the pkgutil utility or the way Xcode reports itself to pkgutil?
0
0
1.2k
Aug ’22