I would expect that if some more advanced nations manage to get to the point in automation where they need UBI etc. the one thing robots wont eliminate would be the need for natural resources.
In fact if nations are building vast numbers of automated factories (or one or two city sized automated factories), the limit on production may just be available resources.
Brazil has a lot of those, so it would be worth Fully Developed* nations sharing this technology and investing in brazil to increase resource production. With the example of nations where this sort of thing was working and bringing better lives to people, countries like brazil would have a roadmap to follow, and probably either companies or national governments that would be willing to help implement the needed technologies.
So assuming the world doesn't break down into war and destruction, I think the benefits will spread to everyone eventually, regardless of who gets it right first.
*fully developed meaning nearly every essential task is automated and only a small proportion of the population needs to work to keep everything running.
EDIT: A fully automated brazil would need it's resources for itself, but I'm sure a country or company could come in and say "hey we will automate your steel industry in exchange for 20% of the greatly increased production for the next 10 years" and by the time those deals ran out those nations would need to be mining asteroids.