M1 Xcode 12.5 can't paste clipboard

I can't paste anything into my simulator since switching to an M1 MacMini. I've tried ticking and unticking "automatically sync clipboard". I've also tried using the "send clipboard" option manually, but no success.

I can seem to paste into safari on the simulator, but not any app I create in Xcode. I've tried multiple and even creating a new one fresh.

I get the below snippet in the console complaining its unable to access some file. Looks like its an Xcode / M1 bug.

I'm not running via rosetta.

Does anyone know how to fix this, its become a real blocker for me testing my app

2021-06-11 12:00:28.656521+0100 camlKit-Example[3736:123707] [db] 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 }}

2021-06-11 12:00:28.656878+0100 camlKit-Example[3736:123707] [db] _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 }}

2021-06-11 12:00:28.656957+0100 camlKit-Example[3736:123707] [db] 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 }}

2021-06-11 12:00:28.657397+0100 camlKit-Example[3736:123707] [claims] Upload preparation for claim 1B09A1C9-1B93-4AB0-B91D-F8789C91AB3C completed with error: Error Domain=NSCocoaErrorDomain Code=256 "The file “fb19cda6511c09d17006da7aefa63f10ea73f68b” couldn’t be opened." UserInfo={NSURL=file:///Users/simonmcloughlin/Library/Developer/CoreSimulator/Devices/CD0E07DE-8C9C-4466-978B-1F6E635EE0E2/data/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/fb19cda6511c09d17006da7aefa63f10ea73f68b, NSFilePath=/Users/simonmcloughlin/Library/Developer/CoreSimulator/Devices/CD0E07DE-8C9C-4466-978B-1F6E635EE0E2/data/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/fb19cda6511c09d17006da7aefa63f10ea73f68b, NSUnderlyingError=0x600002813ae0 {Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)"}}

We are seeing this issue on our large project. Any recommendations to resolve?

M1 Pro (MacBook Pro, 2021, 16-inch)

macOS Monterey 12.2

Xcode 13.1

iOS 15.0 simulator

Running Xcode via Rosetta due to a dependency that has not supported arm yet.

We just switched over our text entry methods from using XCUIElement.typeText(...) to using paste instead because of the slow typing bug on iOS 15.0+ simulators with the .typeText() method. We paste text into the simulator via setting the string in UIPasteboard.general.string, then triggering & tapping the "Paste" menu item for a text entry element. No errors are thrown or seen, the "<app_name> pasted from..." toast alert shows, but the text just never appears in the app.

The issue persists in the same environment but on a iOS 14.5 simulator, so it doesn't seem to be specific to iOS 15.0+ simulators.

Getting this issue too - v. frustrating.

  • M1 MacBook Pro 16 inch
  • Monterey 12.2.1
  • Xcode 13.2.1
  • Simulator 13.2 (tried downgrading but hasn't worked for me)

Can Confirm. This issue still persists.

I also have this problem. Very frustrating.

M1 MacBook Pro 2021 Xcode 13

It does look like it really depends on how the app is built.

I tried to create a ticket for Apple today, since I'm getting this as well, and created a very simple Swift app with just one TextField, and copy/paste actually worked fine.

On the other hand, in the React Native app, clipboard is completely broken and I'm getting these sort of things… Not sure how to decipher what I'm getting, but I was building off the same codebase on Intel before I switched to M1 (when it started to happen), so one thing I'm sure of if that something's definitely up with M1 simulator thingy…

[CoreServices] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes =
0x4014b70c 8322afc9 dfb06ed8 13148b48 ... b6adae0d b2637192 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0x073253e6 9a9b67cc 089d6640 ca4fdb3e ... 46b00d8b bca98999 }}

macOS 12.3.1, Xcode 13.3.1, simulator is running iOS 15.4, but it actually is the same on 14.x branches as well…

I have experienced this running xCode v13.3 and iOS 15.4 in a React Native app. Clipboard functionality works normally in the machine it self but it cannot be pasted in the emulator as expected.

I'm unsure of what's causing it but given this started happening after an update to xCode it could be that a fix is required.

A poor workaround

  • Save what you want to paste into a text file (eg in TextEdit on your laptop)
  • Then drag and drop the .txt file into the simulator window
  • The simulator will prompt you to Save the file in the Files App
  • From the Simulator Open the file and copy the text you want
  • Paste into your app...

You can open Files app on the simulator whenever you need that same text.

Have same issue, latest Xcode 13.4.1 and Simulator iPhone 13 Pro 15.5 version. Getting this exact error several times. Anyone found a fix?

This seems to be fixed for me in the Xcode 14.0.0 beta with iOS 16.0 simulator, not ideal that it still doesn't work on 13.x.

Just tried xCode 14 Beta 3, iPhone 8 iOS 16 simulator, still not able to paste into app under test. Can paste into the Maps app still.

Same here. Still no fix for this Apple??

Same issue here

Same issue here

Just tried xCode 14 Beta 5, iPhone 8 iOS 16 simulator, still not able to paste into app under test. Can paste into the Maps app still.

FWIW, I’m using an Intel Mac and it’s failing. Thanks @danlloydjones for a workaround.

Here is a simple solution:https://github.com/xuemu/M1Pasteboard

Here is a simple solution:https://github.com/xuemu/M1Pasteboard

same issue Xcode 13.4.1 macOS 12.5.1 - m1 pro

Same issue, Xcode 14.0 (14A309) and Simulator iPhone 14 Pro Max iOS 16.0. Can anyone fix it?

How is it possible these kind of issues are there for almost a year, and still persist? Apple, where are you?

I found a workaround: launch sim - any version, then launch default browser on Mac - in my case Chrome. Paste the link in the browser, on phone sim launch Safari, then you will see a prompt with Siri suggestion - your pasted link. Click and go. It worked for me on new Media Mac that I got yesterday.

Same here, Please fix this issue. It has been a year.

I have been having this issue on the M1 as well. I've deleted all of my simulators and re-created them, I've renamed my Xcode (I have four versions installed) back to the default name, etc.

Nothing allows me to sync my clipboard from macOS to the simulator. The paste menu items are disabled.

I'm using M1 XCode 14, macOS Monterrey 12.5.1, not using the simulator with Rosetta and still, the clipboard doesn't work...

Any update about that?

Same here. New MacBook Pro 14, M1 Pro, XCode and Simulator with Rosetta.

M1 Xcode 12.5 can't paste clipboard
 
 
Q