Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine Xcode derived data location from command line

Tags:

Is there a way to determine from the command line what the location of your derived data folder is after building with xcodebuild?

For example, after running xcodebuild:

xcodebuild -project projectname -target targetname 

I want to be able to find out which folder the app is in. I would like to do this without changing the output path with CONFIGURATION_BUILD_DIR or within the project settings.

Any ideas?

like image 305
syvex Avatar asked Dec 10 '12 16:12

syvex


People also ask

Where is Xcode derived data folder?

Another one here is Opening Derived Data folder to access you project binaries or to do any thing else. Either you should know the path to Derived data folder and go to Finder Cmd + Shift + G and then enter the path. Or you have to go to Xcode preferences -> Location Tab click on arrow in front of Derived Data path.

Where is derived data located?

DerivedData is a folder located in ~/Library/Developer/Xcode/DerivedData by default. It's the location where Xcode stores all kinds of intermediate build results, generated indexes, etc. DerivedData location can be configured in Xcode preferences (Locations tab). So now and then you run into odd build problems.

How do I open derived data in Xcode?

Select Xcode -> Preferences..Select 'Locations' tab. In Locations sub-tab you can see 'Derived Data' Click on arrow icon next to path.

Should I delete derived data Xcode?

Xcode can often do some strange things that causes build problems etc. One of the go to methods to try and fix these issues is to delete derived data.


1 Answers

xcodebuild -project myapp.xcodeproj -showBuildSettings 

prints all build settings and values, in particular the folder where the app is build:

BUILT_PRODUCTS_DIR = /path/to/myapp/DerivedData/myapp/Build/Products/Release

like image 84
Martin R Avatar answered Oct 02 '22 01:10

Martin R