Two near-infrared emitting iridium(iii) complexes containing a novel ligand were designed and synthesized for highly sensitive and rapid recognition for GSH, imaging analysis of GSH in living cells and GSH-guided photodynamic therapy in cancer treatment.