[Get Project Directory displayed in Xcode] Termial Command, Tips, and Tricks #tags: xcode, objc, swift, ios
## Build Settings -> Preprocess Macros
PROJECT_DIR=@\""$PROJECT_DIR"\"
BUILD_ROOT=@\""$(BUILD_ROOT)"\"
## Then you can log it directly
## NSLog(@"project dir=%@, BUILD_ROOT_=%@", PROJECT_DIR, BUILD_ROOT);
## http://stackoverflow.com/questions/8888803/find-the-project-dir-for-an-xcode-project