Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does xcode resolve "$(BUILT_PRODUCTS_DIR) to on my system?

Tags:

xcode

build

When Compiling for iPhone Simulator with Xcode 4.2, if I place

"$(BUILT_PRODUCTS_DIR)"

in

Build Settings / Header search paths / Debug

and exit editing I can see it resolves to:

"build/Debug-iphoneos"

Where should this be on my system? I have looked in:

Library/Developer/Xcode/DerivedData/{Project Name}/Build

but I can't find a file called build that contains a folder called Debug-iphoneos.

like image 320
Undistraction Avatar asked Jun 01 '12 08:06

Undistraction


1 Answers

On my system, compiling an OSX project, that resolves to an absolute path:

BUILT_PRODUCTS_DIR /Users/andy/Source/MyProject/build/Debug

There are so many Xcode build variables that I keep a text file with a sample list of them which I got from executing a custom build script and viewing the output within the log tab.

If your code is going into the Library folder, then that is hidden under Lion. You can unhide it from the command line (Terminal) using:

$ cd ~
$ chflags nohidden Library

You should then be able to see its content.

Another tip: I have a ~/tmp folder where I let temporary stuff accumulate and I have set my Xcode preferences to put DerivedData and Archives into that folder so I can:

  • delete it now and again (I don't like temporary stuff accumulating where I cannot control it).
  • see it for packaging pre-release Archived project to testers.
like image 114
trojanfoe Avatar answered Sep 23 '22 20:09

trojanfoe