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

When compiling for iPhone simulator with Xcode 4.2, if I put

"$ (BUILT_PRODUCTS_DIR)"

in

Build Settings / Header Search Paths / Debugging

and exit editing, I see that it resolves:

"builds / debug-iphoneos"

Where should it be in my system? I looked:

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

but I cannot find a file called build that contains the Debug-iphoneos folder.

+7
source share
1 answer

An OSX project is compiled on my system, which resolves the absolute path:

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

There are so many Xcode build variables that I save a text file with a list of examples that I got from running a custom build script and viewing the results in a log tab.

If your code is in the Library folder, then this is hidden under Lion. You can display it from the command line ( Terminal ) using:

 $ cd ~ $ chflags nohidden Library 

Then you can see its contents.

One more tip: I have a ~/tmp folder where I let temporary stuff accumulate, and I set my Xcode settings to put DerivedData and Archives in this folder so that I can:

  • delete it from time to time (I do not like temporary drives, where I can not control them).
  • see it for pre-release packaging. Archived project for testers.
+6
source

All Articles