Why is the an error returned in the first observationīecause xcodebuild executable in /usr/bin is not useful without Xcode app. UPDATES $ ls -l /Applications/ĭrwxr-xr-x 4 user admin 128 Jul 26 00:06 3 root wheel 96 Apr 23 00:52 3 user staff 96 Sublime 3 user staff 96 May 15 20:06 Transmission.appĭrwxr-xr-x 4 root wheel 128 May 27 19:31 Utilities Though it would seem that my active directory and the suggested change is the same. Will cause problems with brew or other installed apps. Sudo xcode-select -switch /Library/Developer/CommandLineTools I am concerned that changing the active directory How can I test (without installing anything to determine if I have the problem described here? Why is the an error returned in the first observation and what remedies are available? Library/Developer/CommandLineTools/usr/bin QUESTIONS X86_64-apple-darwin19.5.0 Thread model: posix InstalledDir: prefix=/Library/Developer/CommandLineTools/usr -with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1Īpple clang version 11.0.3 (clang-1103.0.32.62) Target: Xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance rwxr-xr-x 1 root wheel 31488 May 27 19:37 /usr/bin/xcodebuild Xcode-select: error: tool 'xcodebuild' requires Xcode, but activeĭeveloper directory '/Library/Developer/CommandLineTools' is a command usr/bin/xcodebuild -version ( Reference) returns an error: Run xcode-select -install to fix this.I was not expecting the command to return an error: This error can happen when your version of Xcode needs to be updated as it been outdated by a semi or major update. You may also need to restart your mac and device in order to correctly detect compatibility. This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. Make sure you install any outstanding MacOS updates and then run: xcode-select -installįailed to prepare device for development. Sometimes it will also give you the error: missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun This error usually happens whenever there is a semi or major update on MacOS. Change the path to match the new location: xcode-select -s /Applications/Xcode.app/Contents/DeveloperĮrror: invalid active developer path (/library/Developer/CommandLineTools) If you have multiple versions or need to adjust the path, you can switch it using the following command. If your Xcode installation has been incorrectly set, you can reset it to the default using the following command: sudo xcode-select -r Applications/Xcode.app/Contents/Developer You can run xcode-select -p to print out the installation location of Xcode: xcode-select -p Simply click the version you want to open or manage. You can install it via Homebrew using the following command: brew install -cask xcodes There is an excellent tool called Xcodes. How to install multiple versions of Xcode Unfortunately Apple doesn’t allow older, unmaintained versions of Xcode to persist and this is a common annoyance as major versions are released. Simply update Xcode to the latest version using the xcode-select -install command and it will be resolved. When running a homebrew brew command, you may see errors related to the version of Xcode you have installed. Please update to Xcode 14.1 (or delete it). How to update your Xcode installation when using Homebrew Error: Your Xcode (13.4.1) is too outdated. You can install Xcode on a Mac by running the following command in the terminal: xcode-select -install
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |