Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
/ xcderiveddata Public archive

A command-line utility that prints the path of the derived data directory for the current Xcode project

License

Notifications You must be signed in to change notification settings

NSHipster/xcderiveddata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xcderiveddata

A command-line utility that prints the path of the derived data directory for the current Xcode project.

Requirements

  • Xcode

Command-Line Usage

The xcderiveddata executable can be run from the command line from any directory with an Xcode project:

$ find . -name "*.xcodeproj" -maxdepth 1
MyApp.xcodeproj

$ xcderiveddata
~/Library/Developer/Xcode/DerivedData/MyApp-abcdefghijklmnopqr1234567890

Any additional arguments are passed to xcodebuild, which can be used to set the target, scheme, and any other other options for the specified project or workspace:

$ find . -name "*.xc*" -maxdepth 1
MyApp.xcodeproj
MyFramework.xcodeproj
MyWorkspace.xcworkspace

$ xcderiveddata -workspace MyWorkspace.xcworkspace \
                -scheme MyFramework
~/Library/Developer/Xcode/DerivedData/MyFramework-abcdefghijklmnopqr1234567890

You can pipe the result of xcderiveddata into other commands to automate your build process. For example, here's how to locate any xcresult bundles generated by your test target:

$ xcderiveddata | xargs -I{} find {} -name '*.xcresult'

Installation

Homebrew

Run the following command to install using homebrew:

$ brew install nshipster/formulae/xcderiveddata

Manually

Run the following commands to build and install manually:

$ git clone https://github.com/NSHipster/xcderiveddata.git
$ cd xcderiveddata
$ make install

License

MIT

Contact

Mattt (@mattt)

About

A command-line utility that prints the path of the derived data directory for the current Xcode project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages