In high-energy heavy-ion collisions, the chiral magnetic effect (CME) is predicted to arise from the interplay of the chirality imbalance of quarks (due to QCD instantons/sphalerons) and a strong magnetic field produced in heavy ion collisions. The combined effect leads to the charge separation along the direction of the magnetic field. In this talk, I present the search for CME using the spectator-participant plane method in Pb–Pb collisions at √sNN = 5.02 TeV with ALICE. The primary challenge in this approach lies in reconstructing the spectator plane using the Zero Degree Calorimeter, which will be discussed in details. The final upper limit of the CME signal will be discussed together with its physical implications. In addition, I will discuss another study, which uses the Anomalous Viscous Fluid Dynamics (AVFD) model to extract the CME signal in Pb-Pb and Xe-Xe collisions at √sNN=5.02 TeV and √sNN=5.44 TeV, respectively.