An electromagnetic launcher - a coil gun - does not usually use a single coil, it uses a sequence of coils to accelerate the object along the barrel.
Although a single coil can be use, it's far less effective and harder to build as the coil pulls the object to it's centre, it does not "throw" it - you have to create a strong field and then also demagnetise it again, before the projectile passes the centre, otherwise you slow the projectile down before it leaves the coil.
A multi-stage (or multi-phase) one can vary the field in stages along the barrel so the projectile is always being accelerated.
Note that also with some types of multi-phase coilgun the projectile does not need to be iron - the gun is effectively a "linear induction motor" and a copper or aluminium slug (or coil) will work as well or better than iron as that is lower resistance and can have a higher current induced in to it, creating its own magnetic field that reacts to the drive coils.
Think of it as a bit like a "squirrel cage" AC motor with the outer stator unwrapped and flattened out, then the aluminium and copper rotor flattened out to run along it.
Have a look through this article for some of the basic principles:
https://en.wikipedia.org/wiki/Coilgun