xcode_emulation: fix on CLT-only systems redux

This reimplements r1819 in a way that should avoid breaking Xcode, and
should also allow setting framework paths on CLT-only systems.