由于在iOS14.2模拟器的排除架构中设置arm64导致的大量错误

首先免责声明:我使用 Mac Mini 和 Apple Silicon M1。

由于 Xcode 12 中的已知错误,我在 Excluded Architectures 中设置了 arm64:

链接的框架“XXXXXX”缺少此目标所需的一个或多个架构:arm64。

因为我改变了模拟器的控制台(仅在 iOS 14 中)在启动时打印大量错误,关于错误的哈希模拟器:

[db] LSSchemaConfigureForStore 失败,错误错误域=NSOSStatusErrorDomain 代码=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xc853fe2e 5309ad0b 85774b3404e7df374b3404e7df34b304e7df35c535c5c535c54c535c535c , WrongSimulatorHash={length = 32, bytes = 0x762c6c62 f729dcd9 f2ce6d7b bb9aec8d ... d11ece5a 5fc731a0 }}

还有其他人有这个问题吗?问候。

回答

在使用 Rosetta 运行的 Xcode 在 M1 MBP 上构建时,我遇到了一些不同但类似的问题。某些 Apple 的 API 失败,并且与失败一起将此错误打印到控制台。

在我看来,这是某种模拟器错误,它从 Xcode 12.3 开始就存在。也许 12.4 可以解决它,但我没有尝试。

无论如何,为我解决的是下载iOS 13.7模拟器运行时。

然后使用此 iOS 版本创建一个新模拟器:

如果此解决方案适合您,但您必须拥有 iOS 14,则可以尝试其他 14.x 版本。也许这只是最新版本的问题。

  • For others viewing this, I've tried every iOS 14 simulator and they all have the same issue. On 14.0 my apps won't even install/run, it seems broken under Rosetta. On 13.7 some apps work but I get random EXC_BAD_ACCESS crashes in 3rd party SDK's (like Facebook) that don't occur on Intel or in the real world.

以上是由于在iOS14.2模拟器的排除架构中设置arm64导致的大量错误的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>