由于iOS 14.2模拟器中的“排除的体系结构"中设置了arm64而导致的大量错误 [英] Tons of errors due to set arm64 in Excluded Architectures in iOS 14.2 simulators

查看:1297
本文介绍了由于iOS 14.2模拟器中的“排除的体系结构"中设置了arm64而导致的大量错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先免责声明:我将Mac Mini与Apple Silicon M1配合使用.

first of all disclaimer: I'm using Mac Mini with Apple Silicon M1.

由于Xcode 12中的已知错误,我在排除的体系结构"中设置了arm64:

I have set arm64 in Excluded Architectures due to the known error in Xcode 12:

链接的框架"XXXXXX"缺少一种或多种体系结构 此目标需要:arm64.

The linked framework 'XXXXXX' is missing one or more architectures required by this target: arm64.

由于我更改了模拟器的控制台(仅在iOS 14中),因此在启动时会显示大量错误,涉及错误的哈希模拟器:

Since I changed that the simulator's console (only in iOS 14) prints tons of errors when started, regarding wrong hash simulator:

[db] LSSchemaConfigureForStore失败,错误为Error Domain = NSOSStatusErrorDomain Code = -10817(null)" UserInfo = {__ LSFunction = _LSSchemaConfigureForStore, ExpectedSimulatorHash = {长度= 32,字节= 0xc853fe2e 5309ad0b 8579253e 7b507c34 ... edcdfbe3 457f74e4},LSLine = 405, WrongSimulatorHash = {长度= 32,字节= 0x762c6c62 f729dcd9 f2ce6d7b bb9aec8d ... d11ece5a 5fc731a0}}

[db] LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xc853fe2e 5309ad0b 8579253e 7b507c34 ... edcdfbe3 457f74e4 }, LSLine=405, WrongSimulatorHash={length = 32, bytes = 0x762c6c62 f729dcd9 f2ce6d7b bb9aec8d ... d11ece5a 5fc731a0 }}

还有其他人遇到这个问题吗?问候.

Anyone else having this problem? Regards.

推荐答案

在带有Rosetta的Xcode的M1 MBP上构建时,我遇到了一些不同但相似的问题. Apple的某些API会失败,并且失败还会在控制台上显示此错误.

I had a somewhat different but similar issue when building on M1 MBP with Xcode running with Rosetta. Some of Apple's APIs fail and together with failing there is this error printed to the console.

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

In my opinion this is some kind of a simulator bug and it is present as of Xcode 12.3. Maybe 12.4 solves it, but I did not try.

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

Anyway, what solved it for me was to download iOS 13.7 simulator runtime.

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

And then create a new simulator using this iOS version:

如果该解决方案适用于您,但您必须具有iOS 14,则可以尝试其他14.x版本.也许只有最新版本才有问题.

If this solution worked for you but you must have iOS 14, you can try other 14.x version. Maybe it's an issue only with the latest.

这篇关于由于iOS 14.2模拟器中的“排除的体系结构"中设置了arm64而导致的大量错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆