It shouldn't be this hard to re-install an Xcode that … you know … works, so it seems reasonable for Support to take a look at the problem. If brew config prints out a bunch of information, then you have Homebrew, and you can also check to see whether you have Xcode and/or the standalone command line tools by looking at the lines that start with Xcode: and CLT. If that doesnt help, and you decide you really need a clean installation of Xcode, then, in addition to all of the stuff in that answer, trash the Xcode app. Also note that Xcode is not updated via OS X's Software Update utility on OS versions prior to 10.6, and is updated via the Mac App Store starting with 10.7. Homebrew will automatically download and install the command line tools as part of the Homebrew installation. If nothing else, I suggest you try calling Apple's Developer Program Support. Always make sure to install the latest available version of Xcode for your macOS release using outdated versions of Xcode may cause port install failures. Lrwxr-xr-x 1 root wheel 5 Sep 19 20:46 swiftc -> swiftĭid you delete Xcode before you re-installed it? Did you re-download from the Mac App Store? (A store download may actually download a delta rather than the whole thing, which might make a difference.) It makes no sense that there should be error messages that make "swiftc" look like a directory.Īt this point, you probably have nothing to lose by re-creating the symbolic link manually, if you can (or restore it from a backup). If you wish to install MacPorts on another platform, first make sure you have a working C compiler installed, skip ahead to installing MacPorts from source, and continue. Note that the section about installing Xcode is macOS-specific. Instead, use Xcodes Product menu, then, with the option key pressed, select Clean Build Folder. This chapter shows you how to install MacPorts and its prerequisites step-by-step. A simple clean is rarely useful ( and now removed when using new build system ). Go to below folders and delete them: /Library/Developer/ /Library/Caches/.Xcode. >Any project I try and clean or run on xcode fails without errors. Find whatever versions of php you have installed based on the brew list command then uninstall them, e.g.: brew uninstall -force php72. Drag the Xcode icon to the Trash Clean out the Trash bin. On my installation, the file at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc is actually a symbolic link to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift, which is a real executable in the same folder. 1) Completely uninstall php, httpd (apache), and delete xdebug files (if you had them already installed): brew update brew upgrade brew cleanup brew list grep php.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |