XCTools is a command-line utility designed to streamline common Xcode-related tasks for iOS developers. It provides easy-to-use commands for managing derived data, refreshing dependencies, and running test plans.
- Remove Derived Data: Quickly clean up Xcode's derived data folder.
- Fresh Installation: Easily reinstall pods and reset package cache.
- Launch Test Plans: Interactively select and run specific test plans.
- macOS 10.15 (Catalina) or later
- Xcode 13.0 or later
- Swift 5.10 or later
You can easily install XCTools using Homebrew:
brew tap thepearl/xctools
brew install xctoolsIf you prefer to install from source:
-
Clone the repository:
git clone https://github.com/thepearl/XCTools.git
-
Navigate to the project directory:
cd XCTools -
Build the project:
swift build -c release
-
Install the binary:
cp -f .build/release/XCTools /usr/local/bin/xctools
After installation, you can run XCTools using the xctools command.
To see all available commands:
xctools --helpTo remove Xcode's derived data:
xctools remove-ddOptions:
--path <path>: Specify a custom path for derived data.--clean: Clean the project after removing derived data.
Example with options:
xctools remove-dd --path ~/CustomDerivedData --cleanTo reinstall pods and reset package cache:
xctools freshOptions:
--spm: Also freshen Swift Package Manager dependencies.
Example with SPM option:
xctools fresh --spmTo interactively launch a test plan:
xctools testThis command will guide you through selecting:
- The target
- The test plan
- The iOS version
Follow the prompts to select your desired options.
We welcome contributions to XCTools! If you have a feature request, bug report, or want to contribute code, please open an issue or pull request on our GitHub repository.
XCTools is released under the GNU General Public License v3.0 (GPL-3.0). See the LICENSE file for details.
If you encounter any issues or have questions, please file an issue on the GitHub issue tracker.
Thank you for using XCTools!