Changes between Version 4 and Version 5 of SequoiaProblems
- Timestamp:
- Sep 18, 2024, 9:10:35 PM (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SequoiaProblems
v4 v5 9 9 MacPorts must be [https://www.macports.org/install.php installed] in a version configured for macOS 15 Sequoia. If you update from an older OS version, you need to run `port migrate` to reinstall MacPorts base and installed ports that are not OS-independent (see link above). 10 10 11 Ensure you have Xcode 16.0 or greater installed and selected (e.g. `sudo xcode-select -s /Applications/Xcode.app/Contents/Developer`), ~~and that you have the command line tools installed (`xcode-select --install`)~~. (CLTs should probably be avoided for now, see below.) You also have to agree to the license by running `sudo xcodebuild -license`.11 Ensure you have Xcode 16.0 or greater installed and selected (e.g. `sudo xcode-select -s /Applications/Xcode.app/Contents/Developer`), and that you have the command line tools installed (`xcode-select --install`). (See below for a potential problem when upgrading from older CLT versions.) You also have to agree to the license by running `sudo xcodebuild -license`. 12 12 13 13 There have been reports that the `-license` option might not be sufficient alone, and following command might be required to agree to the license: `sudo xcodebuild -runFirstLaunch` … … 15 15 == Compiling C++ fails == 16 16 17 The C++ compiler in the Command Line Tools for Xcode 16 appears to be broken on Sequoia; it does not look in the correct place for C++ headers. The majority of ports that contain C++ code will likelyfail to build as a result.17 The installer for the Command Line Tools for Xcode 16 does not delete a directory that was installed by some older versions of the CLTs, which unfortunately causes clang++ to look in the wrong place for C++ headers. The majority of ports that contain C++ code will fail to build as a result. 18 18 19 The workaround is to use the compiler in the Xcode app. Either not installing the CLTs in the first place, or deleting `/Library/Developer/CommandLineTools` if they are already installed, will force MacPorts to use Xcode instead.19 The fix is to delete the stray directory if it exists: `sudo rm -rf /Library/Developer/CommandLineTools/usr/include/c++` 20 20 21 21 Ticket: #70750