![]() ++pre>++code>$ cd ~/Library/Developer/CoreSimulator/Devicesĥ. Then clear all the data of the builds you made in it: For instance, I personally use a lot the iPhone 11 Pro Max and the iPhone SE during my developments. You can easily add them again if you need it. My advice: Delete all simulators and recreate the ones that you use the most. ![]() And after quite some time of development, the list of simulators you have available in XCode can be really large which means a lot of disk space is reserved for your simulators. It is interesting to notice that every time you create and launch a new simulator in XCode, more than 500 Mb are allocated to it. ![]() As for myself, this allowed me to free a couple of Gigabytes from my disk. It will basically clean your derived data and Archives that have been stored during the iOS builds. I invite you to download that awesome CLI tool that is also useful for your day-to-day react-native work when you have issue with your cache: rn-game-overįrom your terminal, install it, and then run the command to clean your iOS cache: One thing we will do first is cleaning our code that is cached when we build our iOS apps. Most of the next chapters come from analysis of data that I got from it. I recommand you to use this command wherever you can if you want to investigate by yourself what directory takes the more space in your computer. Really useful to know by yourself what files/folders taking the more spaces on your computer. In our case we tell it to get the size of each directory present in the current path (++code>-maxdepth 1 -mindepth 1++/code>) only, and to sort it by size ( ++code>sort -r -h++/code>).Īt the end, this bash command will list the files with their sizes associated sorted from the biggest one to the smallest one in the current directory. The find utility recursively descends the directory tree for each path listed. maxdepth 1 -mindepth 1 -type d -exec du -hs + | sort -r -h We are going to delete a lot of cached data, and you probably want to not lose all your work ? A useful bash commandīefore digging into the actions I've taken, there is one command you MUST know when you want to find what files and folders are taking spaces on your machine: Before starting, be sure that all the apps you have developed have their code under a version control system.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |