What there are complaints about are foreign investors who bid up property prices but don't move to the city, at least not before retirement age.
This causes a huge disconnect between the price of land in an area, and the earning potential in that area. For people who hope to own land but don't already, it's always out of reach, because they aren't competing with their peers, and the wealthy pockets that are buying homes aren't customers of other local businesses. It's not quite the same as a cluster of unicorns driving up tech salaries to the point where teachers and nurses can't compete on the market. There are no unicorns based in Vancouver. It's hard to identify any career path, even doctor, rockstar engineer, or lawyer, that a high school graduate today could expect to follow while working in this city and be on track for home ownership when time comes to start a family. Assuming that the trend continues, that is. And if it corrects, then it's a question of who was unlucky enough to catch the knife -- because any young locals in the ownership market are going to be highly leveraged, there's no other way.
That might read like xenophobia, but actual immigrants who intend to live, work, and raise families here are generally warmly welcomed and appreciated no matter where they come from. There are some people who get their signals crossed but it's a small minority.
How do you differentiate it from xenophobia?
I'm making no judgment calls here, just pointing out that an easy, pat answer is not sufficient.