Two series of Ln-MOFs by solvent induced self-assembly demonstrating the rapid selective sensing of Mg2+ and Fe3+ cations.