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?
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.
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.
Select Xcode -> Preferences..Select 'Locations' tab. In Locations sub-tab you can see 'Derived Data' Click on arrow icon next to path.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With