├── .github ├── FUNDING.yml └── workflows │ └── markdown-link-check.yml ├── LICENSE.md ├── README.md └── renovate.json /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [ctreffs] 2 | custom: ['https://www.paypal.com/donate?hosted_button_id=GCG3K54SKRALQ'] 3 | -------------------------------------------------------------------------------- /.github/workflows/markdown-link-check.yml: -------------------------------------------------------------------------------- 1 | name: Check Markdown links 2 | 3 | on: push 4 | 5 | jobs: 6 | markdown-link-check: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@master 10 | - uses: gaurav-nelson/github-action-markdown-link-check@1.0.16 11 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | ## creative commons 2 | 3 | # Attribution-NoDerivatives 4.0 International 4 | 5 | Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. 6 | 7 | ### Using Creative Commons Public Licenses 8 | 9 | Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. 10 | 11 | * __Considerations for licensors:__ Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. [More considerations for licensors](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensors). 12 | 13 | * __Considerations for the public:__ By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. [More considerations for the public](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensees). 14 | 15 | ## Creative Commons Attribution-NoDerivatives 4.0 International Public License 16 | 17 | By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-NoDerivatives 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. 18 | 19 | ### Section 1 – Definitions. 20 | 21 | a. __Adapted Material__ means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. 22 | 23 | b. __Copyright and Similar Rights__ means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. 24 | 25 | c. __Effective Technological Measures__ means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. 26 | 27 | d. __Exceptions and Limitations__ means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. 28 | 29 | e. __Licensed Material__ means the artistic or literary work, database, or other material to which the Licensor applied this Public License. 30 | 31 | f. __Licensed Rights__ means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. 32 | 33 | g. __Licensor__ means the individual(s) or entity(ies) granting rights under this Public License. 34 | 35 | h. __Share__ means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. 36 | 37 | i. __Sui Generis Database Rights__ means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. 38 | 39 | j. __You__ means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. 40 | 41 | ### Section 2 – Scope. 42 | 43 | a. ___License grant.___ 44 | 45 | 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: 46 | 47 | A. reproduce and Share the Licensed Material, in whole or in part; and 48 | 49 | B. produce and reproduce, but not Share, Adapted Material. 50 | 51 | 2. __Exceptions and Limitations.__ For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. 52 | 53 | 3. __Term.__ The term of this Public License is specified in Section 6(a). 54 | 55 | 4. __Media and formats; technical modifications allowed.__ The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. 56 | 57 | 5. __Downstream recipients.__ 58 | 59 | A. __Offer from the Licensor – Licensed Material.__ Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. 60 | 61 | B. __No downstream restrictions.__ You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. 62 | 63 | 6. __No endorsement.__ Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). 64 | 65 | b. ___Other rights.___ 66 | 67 | 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. 68 | 69 | 2. Patent and trademark rights are not licensed under this Public License. 70 | 71 | 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. 72 | 73 | ### Section 3 – License Conditions. 74 | 75 | Your exercise of the Licensed Rights is expressly made subject to the following conditions. 76 | 77 | a. ___Attribution.___ 78 | 79 | 1. If You Share the Licensed Material, You must: 80 | 81 | A. retain the following if it is supplied by the Licensor with the Licensed Material: 82 | 83 | i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); 84 | 85 | ii. a copyright notice; 86 | 87 | iii. a notice that refers to this Public License; 88 | 89 | iv. a notice that refers to the disclaimer of warranties; 90 | 91 | v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; 92 | 93 | B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and 94 | 95 | C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. 96 | 97 | For the avoidance of doubt, You do not have permission under this Public License to Share Adapted Material. 98 | 99 | 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. 100 | 101 | 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. 102 | 103 | ### Section 4 – Sui Generis Database Rights. 104 | 105 | Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: 106 | 107 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database, provided You do not Share Adapted Material; 108 | 109 | b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and 110 | 111 | c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. 112 | 113 | For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. 114 | 115 | ### Section 5 – Disclaimer of Warranties and Limitation of Liability. 116 | 117 | a. __Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.__ 118 | 119 | b. __To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.__ 120 | 121 | c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. 122 | 123 | ### Section 6 – Term and Termination. 124 | 125 | a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. 126 | 127 | b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: 128 | 129 | 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or 130 | 131 | 2. upon express reinstatement by the Licensor. 132 | 133 | For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. 134 | 135 | c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. 136 | 137 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. 138 | 139 | ### Section 7 – Other Terms and Conditions. 140 | 141 | a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. 142 | 143 | b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. 144 | 145 | ### Section 8 – Interpretation. 146 | 147 | a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. 148 | 149 | b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. 150 | 151 | c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. 152 | 153 | d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. 154 | 155 | > Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. 156 | > 157 | > Creative Commons may be contacted at creativecommons.org 158 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Xcode defaults 2 | 3 | ![Check Markdown links](https://github.com/ctreffs/xcode-defaults/workflows/Check%20Markdown%20links/badge.svg) [![License: CC BY-ND 4.0](https://img.shields.io/badge/License-CC%20BY--ND%204.0-green.svg)](https://creativecommons.org/licenses/by-nd/4.0/) 4 | 5 | #### Backup Xcode defaults 6 | 7 | ```sh 8 | defaults read com.apple.dt.Xcode > ~/Desktop/XcodeDefaults.plist 9 | ``` 10 | 11 | #### Restore Xcode vanilla defaults 12 | 13 | If you delete/move the current plist, Xcode will write a fresh one next time you run it. 14 | 15 | ```sh 16 | killall Xcode 17 | mv ~/Library/Preferences/com.apple.dt.Xcode.plist ~/Desktop/XcodeDefaults.plist 18 | open -b com.apple.dt.Xcode 19 | ``` 20 | 21 | ### New Swift build system mode 22 | 23 | With [Xcode 13.3](https://developer.apple.com/documentation/xcode-release-notes/xcode-13_3-release-notes) the build system and Swift compiler have a new mode that better utilizes available cores, resulting in faster builds for Swift projects. The mode is opt-in, and you can enable globally with the following user default: 24 | 25 | ```sh 26 | defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1 27 | ``` 28 | 29 | Source [@BenchR](https://twitter.com/BenchR/status/1460699068846456832) 30 | 31 | ### Enable project build time 32 | 33 | ```sh 34 | defaults write com.apple.dt.Xcode ShowBuildOperationDuration -bool YES 35 | ``` 36 | 37 | 38 | ### Enable parallel builds for Swift 39 | 40 | ```sh 41 | defaults write com.apple.dt.Xcode BuildSystemScheduleInherentlyParallelCommandsExclusively -bool YES 42 | ``` 43 | 44 | ### Disable parallel builds for Swift 45 | 46 | Xcode 9.3 now runs more Swift build tasks in parallel with other commands. This may improve build times for Swift projects, but may also increase memory use during the build. This feature can be disabled from Terminal by setting a user default with 47 | 48 | ```sh 49 | defaults write com.apple.dt.Xcode BuildSystemScheduleInherentlyParallelCommandsSerially -bool YES 50 | ``` 51 | 52 | ### Enable multi-cursor editing 53 | 54 | ```sh 55 | defaults write com.apple.dt.Xcode PegasusMultipleCursorsEnabled -bool YES 56 | ``` 57 | 58 | ### Set maximum number of concurrent compile tasks 59 | 60 | ```sh 61 | defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks `sysctl -n hw.ncpu` 62 | ``` 63 | 64 | Where `sysctl -n hw.ncpu` gives you the number of CPU threads. 65 | 66 | ### Set maximum number of parallel build subtasks 67 | 68 | ```sh 69 | defaults write com.apple.dt.Xcode PBXNumberOfParallelBuildSubtasks `sysctl -n hw.ncpu` 70 | ``` 71 | 72 | Where `sysctl -n hw.ncpu` gives you the number of CPU threads. 73 | 74 | ### Enable/Disable indexing 75 | 76 | Keep in mind that disabling indexing will disable `refactor` code action so you probably won't be able to generate protocol conformances or memberwise initializers 77 | 78 | ##### Enable indexing 79 | 80 | ```sh 81 | defaults delete com.apple.dt.Xcode IDEIndexDisable 82 | defaults write com.apple.dt.Xcode IDEIndexEnable -bool YES 83 | ``` 84 | 85 | ##### Disable indexing 86 | 87 | ```sh 88 | defaults delete com.apple.dt.Xcode IDEIndexEnable 89 | defaults write com.apple.dt.Xcode IDEIndexDisable -bool YES 90 | ``` 91 | 92 | ### Show Indexing numeric progress 93 | 94 | ```sh 95 | defaults write com.apple.dt.Xcode IDEIndexerActivityShowNumericProgress -bool YES 96 | ``` 97 | 98 | ### Show Indexing logging 99 | 100 | This will show you why a particular file is having trouble being compiled for indexing. 101 | 102 | ```sh 103 | defaults write com.apple.dt.Xcode IDEIndexShowLog -bool YES 104 | ``` 105 | 106 | ### Show prebuild step logs 107 | 108 | ```sh 109 | defaults write com.apple.dt.Xcode IDEShowPrebuildLogs -bool YES 110 | ``` 111 | 112 | ### Set SourceKit log level 113 | 114 | If set to SourceKit will write a log to /tmp with all the details of what it is doing while indexing. 115 | A lot of people find they have header hygiene problems or module problems that happen to work while building in certain configurations but aren't actually correct, resulting in missing modules or broken headers from the indexer's point of view. 116 | May not work anymore. 117 | 118 | ```sh 119 | defaults write com.apple.dt.Xcode IDESourceKitServiceLogLevel -int 3 120 | ``` 121 | 122 | Also you can do this temporarily by pre-pending this environment variable when starting Xcode: 123 | 124 | ```sh 125 | SOURCEKIT_LOGGING=3 /Applications/Xcode.app/Contents/MacOS/Xcode 126 | ``` 127 | Source [AppCode under the hood - Aydar Mukhametzyanov - NSSpain 2021](https://vimeo.com/479319821#t=1070s) 128 | 129 | ### Disable Main Thread Checker 130 | 131 | Deactivates the Main Thread Checker. Found in [Xcode 12 release notes](https://developer.apple.com/documentation/xcode-release-notes/) 132 | 133 | ```sh 134 | defaults write com.apple.dt.Xcode DVTDisableMainThreadChecker 1 135 | ``` 136 | 137 | ### Enable internal Xcode (debug) menu 138 | 139 | ```sh 140 | defaults write com.apple.dt.Xcode ShowDVTDebugMenu -bool YES 141 | ``` 142 | 143 | ### Disable automatic reopening of last project 144 | 145 | Prevents Xcode from automatically restoring the last open project. 146 | This enables running multiple Xcode versions for different projects. 147 | 148 | ```sh 149 | defaults write com.apple.dt.Xcode ApplePersistenceIgnoreState -bool YES 150 | ``` 151 | 152 | ### Some minimal additional logging 153 | 154 | ```sh 155 | defaults write com.apple.dt.XCBuild EnableDebugActivityLogs -bool YES 156 | ``` 157 | 158 | ### Enable build debugging mode 159 | 160 | This slows down the build system & litters DerivedData//Build/Intermediates.noindex), generally should only be enabled when trying to capture a trace for incremental build debugging purposes. 161 | 162 | ```sh 163 | defaults write com.apple.dt.XCBuild EnableBuildDebugging -bool YES 164 | ``` 165 | 166 | ### Make Assistant aware of more companion files 167 | 168 | Make Xcode's Assistant aware of your ViewModels, Views, etc. 169 | Found by [@peterfriese](https://twitter.com/peterfriese/status/1364544309878534144) 170 | 171 | ```sh 172 | defaults write com.apple.dt.Xcode IDEAdditionalCounterpartSuffixes -array-add "ViewModel" "View" "Screen" 173 | ``` 174 | 175 | ### Disable move files on restructure 176 | 177 | Do not move files when you restructure things in an Xcode project. Found by [@steinpete](https://twitter.com/steipete/status/1287057462454038528) 178 | 179 | ```sh 180 | defaults write com.apple.dt.Xcode IDEDisableStructureEditingCoordinator -bool YES 181 | ``` 182 | 183 | 184 | ### Disable state restoration 185 | 186 | Stop Xcode from reopening files on launch. Found by [@SmileyKeith](https://twitter.com/SmileyKeith/status/759850753993375745) 187 | 188 | ```sh 189 | defaults write com.apple.dt.Xcode IDEDisableStateRestoration -bool YES 190 | ``` 191 | 192 | ### Homebrew prefix path 193 | 194 | [Homebrew's](https://brew.sh) default [prefix/install path](https://docs.brew.sh/Manpage#--prefix---unbrewed---installed-formula-) can point to different locations depending on your system. 195 | Xcode by default only looks for `/opt/brew` and `/usr/local`. 196 | You can adjust that location by writing the following default. 197 | To get your Homebrew prefix call `brew --prefix`. 198 | Source [@NeoNacho](https://twitter.com/NeoNacho/status/1412514541343166467?s=20) 199 | 200 | ```sh 201 | defaults write com.apple.dt.Xcode IDEHomebrewPrefixPath -string 202 | ``` 203 | 204 | ### Swift package remote source path 205 | 206 | Specify the directory to which remote source packages are fetch or expected to be found. 207 | `xcodebuild` has the same option as `clonedSourcePackagesDirPath`. 208 | Source [@bguidolim](https://twitter.com/bguidolim/status/1249418542111432711) 209 | 210 | ```sh 211 | defaults write com.apple.dt.Xcode IDEClonedSourcePackagesDirPathOverride -string 212 | ``` 213 | 214 | ## 📱 Simulator 215 | 216 | ### Enable Simulator fullscreen mode 217 | 218 | ```sh 219 | defaults write com.apple.iphonesimulator AllowFullscreenMode -bool YES 220 | ``` 221 | 222 | ## 🏗️ XCBuild 223 | 224 | ### Enable Build Debugging 225 | 226 | Creates an XCBuildData folder in `~/Library/Developer/Xcode/DerivedData//Build/Intermediates.noindex/` which contains debugging info for xcodebuild. 227 | 228 | ```sh 229 | defaults write com.apple.dt.XCBuild -bool YES 230 | ``` 231 | 232 | 233 | ## 🗑️ Xcode Cleanups 234 | 235 | 236 | ### Remove all Xcode DerivedData 237 | 238 | ... provided Xcode is set to default folder locations. 239 | This is a quick win and helps to get back gigabytes of storage space. 240 | Do this regularly. 241 | 242 | ```sh 243 | rm -rdf ~/Library/Developer/Xcode/DerivedData/* 244 | rm -rf $(defaults read com.apple.dt.Xcode.plist IDECustomDerivedDataLocation) 245 | ``` 246 | 247 | 248 | ### Remove all Xcode DeveloperTools cache files 249 | 250 | ... provided Xcode is set to default folder locations. 251 | 252 | 253 | ```sh 254 | CACHE=$(getconf DARWIN_USER_CACHE_DIR) 255 | rm -rdf ${CACHE}com.apple.DeveloperTools 256 | rm -rdf ${CACHE}org.llvm.clang.$(whoami)/ModuleCache 257 | rm -rdf ${CACHE}org.llvm.clang/ModuleCache 258 | rm -rdf ~/Library/Caches/com.apple.dt.*/* 259 | ``` 260 | 261 | #### Remove all Xcode / Swift temporary files. 262 | 263 | ```sh 264 | TMP=$(getconf DARWIN_USER_TEMP_DIR) 265 | rm -rdf ${TMP}*.swift 266 | rm -rdf ${TMP}ibtool* 267 | rm -rdf ${TMP}*IBTOOLD* 268 | rm -rdf ${TMP}supplementaryOutputs-* 269 | rm -rdf ${TMP}xcrun_db 270 | rm -rdf ${TMP}sources-* 271 | rm -rdf ${TMP}com.apple.dt.* 272 | rm -rdf ${TMP}com.apple.test.* 273 | ``` 274 | 275 | ## 🧰 Tools 276 | 277 | - [DevCleaner](https://github.com/vashpan/xcode-dev-cleaner) If you want to reclaim tens of gigabytes of your storage used for various Xcode caches - this tool is for you! 278 | - [Kintsugi](https://github.com/Lightricks/Kintsugi) A tool to automatically resolve Git conflicts that occur in Xcode project files 279 | - [BuildTimeAnalyzer](https://github.com/RobertGummesson/BuildTimeAnalyzer-for-Xcode) A build time analyzer for Xcode 280 | - [XCLogParser](https://github.com/MobileNativeFoundation/XCLogParser) A tool to parse Xcode and xcodebuild logs stored in the xcactivitylog format 281 | - [XCMetrics](https://github.com/spotify/XCMetrics) A tool to collect Xcode build metrics and improve developer productivity 282 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "config:base" 5 | ] 6 | } 7 | --------------------------------------------------------------------------------