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)"}}

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?

M1 Xcode 12.5 can't paste clipboard
 
 
Q