Answer:
In both Uganda and South Africa, xenophobic attacks occurred due to grievances over existing socio-economic challenges such as unemployment, poverty, income inequality, access to property and high crime rates (for the case of South Africa.
Hope it helped...