The astrophysics here is not quite right. Stars actually do make elements heavier than iron (where else would they come from?), they just don't get any energy out of them.
Also, it's a misconception that the iron on Earth is made in the cores of stars. That iron is almost all trapped in the resulting neutron star or black hole. The iron released to the rest of the universe is formed from the decay of nickel and cobalt in the supernova explosion.