Margot Robbie as Barbie on the set of the film about the famous doll