Xcode 问题 Command SwiftCompile failed with a nonzero exit code ,模拟器测试出现的问题

895 阅读1分钟

今天遇到一个问题,模拟器在运行项目时,报错

然后我尝试着这么解决下

模拟器是可以用了,但是会有类似的提示。

using an empty LLDB target which can cause slow memory reads from remote devices: the specified architecture 'arm64-*-*' is not compatible with 'x86_64-apple-ios13.0.0-simulator'

而且 如果在使用真机调试会出现类似的问题(M1 环境下)

出现这种问题的原因是 arm64 添加的方式不对。

改成这种配置,就没问题了。