iPhone 13 Pro Max cannot run executables for x86_64

iPhone 13 Pro Max does not support the architecture of the selected executable. Switch to a device that supports x86_64.

解决方法1:
退出Xcode,重启项目

解决方法2:

选择Targets - BuildSettings
将Build Active Architecture Only 中的Debug调整为 NO,然后在调整为YES;
退出Xcode,重启项目

iShot_2022-07-12_09.58.09.png