PhoneXR uses A 12 chip and Kirin 980 used by Huawei p30pro, which are also in 7nm process. Architecturally, the quad-core GPU of A 12 chip is better than the Mail-G72 of Kirin 980, and the computing power of A 12 neural engine is higher than that of Kirin 980 with dual NPU.
EMUI has replaced the underlying compiler in the latest version of EMUI9. 1, but the Clang/LLVM compiler of iOS is still faster in the underlying running speed, and the Objec-c of iOS is more efficient in running.
Huawei p30pro adopts an organic light-emitting diode screen with a resolution of 2340× 1080, and a 40 million+20 million+8 million+Huawei time-of-flight (ToF) camera, which supports 50x digital zoom. On these two points, Huawei p30pro is because of iPhonexr.