Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817

Running an XCode 12, iPhone 12, iOS 14.3 emulator and receiving this error:

Code Block
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 }}


This is preventing us from using 'axios' in order to sign into our application. Is there a solution to this issue? What are the steps to remedy?
Post not yet marked as solved Up vote post of JKeane00 Down vote post of JKeane00
3.6k views

Answers

I'm having the same issue running Xcode 12.3 on Simulator iPhone 11 on Apple M1 Chip.
Can someone help? @JKeane00, have you found resolution to the issue?
I had a somewhat different but similar issue when building on M1 MBP with Xcode running with Rosetta. Some of Apple's APIs failed and together with failing there is this error printed to the console.

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.

Anyway, what solved it for me was to download iOS 13.7 simulator runtime and create a new simulator with this iOS version.
Same problem:

Note that building my App with Rosetta on Macbook Air M1 and xCode 12.4 do build,
but shows a white screen on emulator. 

In console this error:

Code Block 2021-02-05 14:30:25.803954+0100 MyApp[56865:1897839] 7.5.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2021-02-05 14:30:25.825210+0100 MyApp[56865:1895569] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x64ffa485 dd556ca7 e49bc38c da04e080 ... e817a119 c3dad3ce }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xf74b7cf2 146c7320 f164d932 556def6c ... e5c99aa7 f132eec7 }}
2021-02-05 14:30:25.825935+0100 MyApp[56865:1895569] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x64ffa485 dd556ca7 e49bc38c da04e080 ... e817a119 c3dad3ce }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xf74b7cf2 146c7320 f164d932 556def6c ... e5c99aa7 f132eec7 }}
2021-02-05 14:30:25.827823+0100 MyApp[56865:1895569] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x64ffa485 dd556ca7 e49bc38c da04e080 ... e817a119 c3dad3ce }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xf74b7cf2 146c7320 f164d932 556def6c ... e5c99aa7 f132eec7 }}
2021-02-05 14:30:25.827908+0100 MyApp[56865:1895569] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x64ffa485 dd556ca7 e49bc38c da04e080 ... e817a119 c3dad3ce }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xf74b7cf2 146c7320 f164d932 556def6c ... e5c99aa7 f132eec7 }}
2021-02-05 14:30:25.828663+0100 MyApp[56865:1895569] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x64ffa485 dd556ca7 e49bc38c da04e080 ... e817a119 c3dad3ce }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xf74b7cf2 146c7320 f164d932 556def6c ... e5c99aa7 f132eec7 }}
2021-02-05 14:30:25.828765+0100 MyApp[56865:1895569] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x64ffa485 dd556ca7 e49bc38c da04e080 ... e817a119 c3dad3ce }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xf74b7cf2 146c7320 f164d932 556def6c ... e5c99aa7 f132eec7 }}
2021-02-05 14:30:25.830113+0100 MyApp[56865:1895569] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x64ffa485 dd556ca7 e49bc38c da04e080 ... e817a119 c3dad3ce }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xf74b7cf2 146c7320 f164d932 556def6c ... e5c99aa7 f132eec7 }}
2021-02-05 14:30:25.830204+0100 MyApp[56865:1895569] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x64ffa485 dd556ca7 e49bc38c da04e080 ... e817a119 c3dad3ce }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xf74b7cf2 146c7320 f164d932 556def6c ... e5c99aa7 f132eec7 }}
2021-02-05 14:30:25.831817+0100 MyApp[56865:1895569] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x64ffa485 dd556ca7 e49bc38c da04e080 ... e817a119 c3dad3ce }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xf74b7cf2 146c7320 f164d932 556def6c ... e5c99aa7 f132eec7 }}
2021-02-05 14:30:25.831914+0100 MyApp[56865:1895569] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x64ffa485 dd556ca7 e49bc38c da04e080 ... e817a119 c3dad3ce }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xf74b7cf2 146c7320 f164d932 556def6c ... e5c99aa7 f132eec7 }}



This occurred for me using Xcode 12.5 on an M1 Mac mini.

The solution in my case was to ensure that Xcode was opened without using Rosetta.

To check for this, select Xcode in the Finder in your Applications folder, then press Command-I.

Under the General section of the Info dialog that appears, ensure there is no checkmark beside the "Open using Rosetta" option.

Then close and re-open Xcode, and try building your application and running within the Simulator again.

In my case, this resolved the appearance of the errors described by the original poster.

  • Hi ,

    I'm facing the same issue `_LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x15dde658 ed2a1267 ab2496d7 34f186ad ... ec431c65 02d68f35 }, _LSLine=409, WrongSimulatorHash={length = 32, bytes = 0xaf25dda9 e45baa35 610eaabd 5bc09901 ... 9cbe61f3 81d7b9d9 }}

    Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x15dde658 ed2a1267 ab2496d7 34f186ad ... ec431c65 02d68f35 }, _LSLine=409, WrongSimulatorHash={length = 32, bytes = 0xaf25dda9 e45baa35 610eaabd 5bc09901 ... 9cbe61f3 81d7b9d9 }}

    .... .....

    [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSAutoresizingMaskLayoutConstraint:0x600002fa8dc0 h=--& v=--& _UIButtonBarButton:0x7f9a01f19f50.height == 0 (active)>", "<NSLayoutConstraint:0x600002f8e170 _UIUCBKBSelectionBackground:0x7f9a01f1a870.bottom == _UIButtonBarButton:0x7f9a01f19f50.bottom - 6 (active)>", "<NSLayoutConstraint:0x600002f8e0d0 V:|-(6)-[_UIUCBKBSelectionBackground:0x7f9a01f1a870] (active, names: '|':_UIButtonBarButton:0x7f9a01f19f50 )>" )

    Will attempt to recover by breaking constraint <NSLayoutConstraint:0x600002f8e170 _UIUCBKBSelectionBackground:0x7f9a01f1a870.bottom == _UIButtonBarButton:0x7f9a01f19f50.bottom - 6 (active)>

    Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful. ' I'm using XCode 14.5 , iOS 14.5 , macOS Big Sur Version 11.4

    Please let me know if anyone has any suggestion/solution.

    Thanks, Regards, Nagesh

Add a Comment