4/4/2023 0 Comments Xcode download simulatorsAnd also thanks to Russ Bishop for telling Olivier about this. (Thanks to Olivier Halligon for telling me about this feature. Of course, if you need space now you'll still need to go in and manually delete Device Support files that you no longer need but this feature should certainly put a cap on the number of old Device Support files that are kept around. I think it's really cool that Xcode and macOS can now actively help you reclaim disk space by removing unused Device Support files. The system has full control over when exactly this cleanup takes place and the exact cleanup times are dependent on variables like system activity, available disk space, whether you're connected to power and more. This means that macOS can automatically clean up old Device Support files after they haven't been used for 180 days. Any Device Support files that haven't been used for 180 days or more are automatically made elligible for deletion by the system. Pretty good, right? Xcode 12 automatically helps cleaning up Device Support filesĪ very cool feature of Xcode 12 is that Xcode will track the device / iOS version combinations that you use and update the mtime for each item in the Device Support directory accordingly. Open up your Xcode and go to Xcode > Preferences through the top menu bar (you can also use shortcuts: Command , ): 2. So that's 15Gb of space after about 8 months of use. When I ran these commands on a machine that got a clean install when macOS Catalina came out I was able to free up 15Gb of disk space. Clean up unavailable simulators using by typing xcrun simctl delete unavailable in your Terminal. Do the same with open ~/Library/Developer/Xcode/watchOS\ DeviceSupport.Delete folders for iOS versions that you no longer need to support. Go to your Terminal and type open ~/Library/Developer/Xcode/iOS\ DeviceSupport.Install the Simulator runtime with simctl. Run the first launch experience to install the required system components, including simctl. Then follow these steps with the command line to install it: Select the version of Xcode for installation. To clean these files up you can do the following: Download the Simulator runtime you want to install from the developer website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |