xcodebuild puts build products in $SYMROOT
, but stores profile products in $OBJROOT
.
If you want to completely confine a build, including all intermediate and ultimate products, to a single directory, you need to set three build settings:
SYMROOT
: Build Products Path (ultimate products, such as apps and test bundles)OBJROOT
: Intermediate Build Files Path (intermediate products, such as per-module object files—generated by the compiler, read by the linker—and .gcno/.gcda files)SHARED_PRECOMPS_DIR
: Precompiled Headers Cache Path (guess)