Xcode: Set object file locations using TARGET_TEMP_DIR

This avoids relying on `SYMROOT` to locate the object files.

Issue: #22550
3 files changed