Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple M1 issue with iPhone simulator

I'm trying to compile my Xamarin Forms Android app on iOS. However I keep running into an error:

[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 }}

These 2 lines will repeat about 20 times.

I am compiling on a MacBook Air 2020 with the M1 chip.

I have tried debugging the app on a colleague's iPhone, which doesn't cause this error and works just fine.

like image 380
Tygo Avatar asked Jan 06 '21 09:01

Tygo


People also ask

Are there any issues with Apple M1 chip?

MIT researchers recently discovered a physical security flaw in M1 chips. What should you do about it? On June 10, 2022, MIT's Computer Science and Artificial Intelligence Laboratory (CSAIL) released a report outlining an unpatchable flaw with Apple's popular M1 chip.

Can M1 Mac run iOS games?

The M1 processors used in the latest Macs are based on technology first developed for the company's iPhone and iPad. (In fact, the current iPad Pro uses the same M1 processor.) Because of this, the M1 brings to the Mac the ability to run iPhone and iPad apps.

Why are Apple M1 chips so fast?

Apple uses memory, which is designed to serve both large chunks of data and do it very quickly. It is called 'low latency and high throughput'. This removes the need to have two different types of memory and all the copying of data between them, making the M1 faster.

How do I run a simulator on an m1-based Mac?

To run a simulator on an M1-based Mac, your linked frameworks need to support an ARM64 for M1 slice. This is accomplished by application vendors shipping a new product packaged as an XCFramework rather than the traditional Framework. This new product version can include an M1 Simulator slice for testing.

What is Apple’s M1 Mac?

Summary: Apple’s recent M1 Mac has aroused much excitement in Mac user base thanks to the new ARM-based Apple Silicon chip that uses the ‘indigenous unified memory architecture.’ In addition, this new M1 Mac performs incredibly well, consumes less power, and significantly increases the battery life of MacBook Air and MacBook Pro.

Why is Spotify not working on my MacBook Air M1?

This also seems to be an issue with the Spotify iOS SDK as well, it is expecting the Simulator to be running x86_64 but on my MacBook Air M1 the simulator is running ARM. It works okay on a device though. Had the same issue. This has helped. Hope it will help you too.

Can I run Intel x86 apps on M1 Mac?

Until software developers create Apple Silicon compatible apps, emulation is the only workaround to launch incompatible Intel-based x86 apps on M1 Mac. 3. M1 Mac has no Boot Camp to install Windows


Video Answer


1 Answers

Using a simulator on iOS 13.7 is working for me, but that's obviously a workaround.

To install:

  1. Window -> Devices and Simulators
  2. click Simulators
  3. click the "+" in the lower left corner click plus button
  4. install 13.7

select OS version

like image 178
froggomad Avatar answered Oct 20 '22 15:10

froggomad