iPhone模拟器的Apple M1问题

Tyg*_*ygo 19 visual-studio xamarin.ios ios xamarin apple-m1

我正在尝试在 iOS 上编译我的 Xamarin Forms Android 应用程序。但是我一直遇到错误:

[db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x35effaa3 2bab3fa8 68f8c96b cd17d15e ... 9bf8f6b7 fd486754 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xe14e0f7b 39a9580e 8e4762c4 846107dc ... 21618def 3c69a5ae }}

[db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x35effaa3 2bab3fa8 68f8c96b cd17d15e ... 9bf8f6b7 fd486754 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xe14e0f7b 39a9580e 8e4762c4 846107dc ... 21618def 3c69a5ae }}
Run Code Online (Sandbox Code Playgroud)

这 2 行将重复大约 20 次。

我正在使用 M1 芯片的 MacBook Air 2020 进行编译。

我曾尝试在同事的 iPhone 上调试该应用程序,这不会导致此错误并且工作正常。

fro*_*mad 8

在 iOS 13.7 上使用模拟器对我来说很有效,但这显然是一种解决方法。

安装:

  1. 窗口 -> 设备和模拟器
  2. 单击模拟器
  3. 点击左下角的“+” 单击加号按钮
  4. 安装13.7

选择操作系统版本


Adi*_*oho -5

您可以OS_ACTIVITY_MODE = disable在环境变量的参数中添加

产品 -> 编辑架构 -> 运行 -> 参数

  • 这隐藏了错误的打印,但是,它并没有解决实际问题。 (4认同)