Disclosed is a fused-ring or tricyclic aryl pyrimidine compound used as a mutation selectivity EGFR inhibitor. Specifically, disclosed is a compound represented by formula (I) and used as an EGFR inhibitor or a pharmaceutically acceptable salt thereof.