iPhone模拟器的Apple M1问题

时间:2021-01-06 09:46:18

标签: ios visual-studio xamarin xamarin.ios 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 }}

这两行将重复大约 20 次。

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

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

2 个答案:

答案 0 :(得分:1)

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

安装:

  1. 窗口 -> 设备和模拟器
  2. 点击模拟器
  3. 点击左下角的“+” click plus button
  4. 安装 13.7

select OS version

答案 1 :(得分:-1)

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

Product -> Edit Schema -> Run -> Arguments