Application launch for 'XXX' did not return a valid pid nor a launch error.M1兼容问题

项目如果build成功,模拟器app安装成功后报错如下

Application launch for 'XXX' did not return a valid pid nor a launch error.

Domain: NSPOSIXErrorDomain

Code: 3

Failure Reason: No such process

User Info: ...

在应用程序中右击xcode-显示简介-勾选使用Rosetta打开,重新启动xcode,运行工程即可

你可能感兴趣的:(Application launch for 'XXX' did not return a valid pid nor a launch error.M1兼容问题)