The introduction of ר׳ פנחס קהתי's to מסכת ערובין reads, in part (in my own translation and with emphasis supplied):
… that residents of the courtyard not carry from their houses to the courtyard or from the courtyard to their houses unless they made an "eruv [chatzeros]", i.e. that all the residents place food before the sabbath in the house of one of their number. By doing so their domain becomes combined, they themselves are as if they're all concentrated in the residence in which the eruv food is placed, and the entire courtyard with its houses becomes as if one homogeneous domain.…
… makes an "eruv t'chumim" before the sabbath, i.e. that he places… two meals' food, thereby acquiring sabbathhood at that location when the sabbath starts, meaning that we look upon the location where he left the eruv as if it's his house for this sabbath…
My kid asked: Why is it possible for someone to make both an eruv chatzeros and an eruv t'chumin? It's setting his residence in two different places for the same sabbath and shouldn't work. [I might add that the same applies to making two eruve chatzeros.] We've never heard that's impossible.