![]() Wait until the download process finished. Xcode command line tools license agreementĪ pop-up window will appear informing you of the download progress. Xcode command line tools install confirmationĪ standard License Agreement will appear.Ĭlick Agree to continue the installation process. ![]() If you need to rethink again, click Cancel. Xcode-select: note: install requested for command line developer toolsĪfter you entered the previous command on Terminal, a pop-up window will appear for confirmation. Here is an example session when I install Xcode command-line tools. What you need is to enter the following command. Manually Install Command Line Tools for Xcode How to Install Xcode Command Line Toolsīy using this command, you can download and install the latest Xcode command-line tools.How to Uninstall Xcode Command Line Tools.How to Install Xcode Command Line Tools.In this post, I documented three most frequently asked questions about the Xcode command-line tools. In that case, you only need the subset of it: Xcode command-line tools. Maybe you want to write a command-line software on macOS, or maybe you need to use Homebrew package manager. You probably need some of its tools without install the entire package. Little did I know it would add up to over 200GB! I’ll have to check up on it periodically to make sure I can keep my disk usage low.Xcode is an IDE from Apple to create apps for iPhone, iPad, Mac, Apple Watch, and Apple TV. I knew that there must have been some kinds of unneeded files or caches that I could get rid of. I was starting to get a little nervous as I saw my available hard drive space dwindling away day by day. Mine were less than 1GB, so I didn’t look into what they were or if they were needed. They are stored in ~/Library/Logs/CoreSimulator, so maybe take a look there. It seems like the iOS simulator logs can also accumulate. I found that I had a 20GB directory at ~/Library/Cache/ even though I currently use CocoaPods for dependency management! Logs ![]() It’s possible you might see directories for apps you have have deleted long ago. Take care not to delete archives that you actually do care about before deleting them all! Other Opportunities CachesĪnother place to look for files to delete would be in ~/Library/Caches. They are all stored in ~/Library/Developer/Xcode/Archives/, but are organized by the date they were made. You can delete them in bulk in Finder or on the command line. It is probably a good idea to have them backed up somewhere, but I don’t think it’s necessary to keep them locally for all time.Īrchives can be deleted through Xcode’s Organizer window, but it doesn’t allow multiple selection, so you’ll have to delete them all one-by-one. Archives are the finished products of apps you have made in the past, and include the debug symbols which are needed to symbolicate crash logs. > rm -rf ~/Library/Developer/Xcode/DerivedData Xcode will regenerate them the next time you plug in an unrecognized iOS anyway. I had 6 versions of iOS 12.0, 4 versions of 12.1.X, and 4 versions of 12.2!įeel free deleting any old Device Support files that you don’t need. you install all the betas), then you most likely have a lot of Device Support files for iOS versions you will never need again. These files are roughly 2.5GB for each version of iOS that your computer needs to talk to. If you’ve plugged your phone into your computer after upgrading your OS, you’ve seen it processing before you’re able to debug on it. In order for Xcode to know how to deal with the OS on your phone, it needs Device Support files. You can also manage simulators in Xcode, but it doesn’t give you the option to delete all unavailable simulators, so the command line might be nice in this case. There are a lot more commands you can do from the command line to view, create, or delete simulators that currently exist.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |