Anomalies as obstructions: from dimensional lifts to swampland