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)"}}
Post not yet marked as solved Up vote post of simonmcl Down vote post of simonmcl
31k views
Add a Comment

Replies

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.

I'm using M1 XCode 14, macOS Monterrey 12.6 (21G115), and using the XCode with Rosetta, the clipboard doesn't work... Any help would be appreciated.

Wow, still not fixed after 1 year.

Same issue and i'm using an Intel i7 Macbook, XCode 14, iOS 15 and MacOS Monterey 12.6. The processor shouldn't affect it.

Hey guys 👋🏼 Here is a quick workaround I created if you want

  • i can use your shortcut, but when i highlight a new sentence, the one that getting copied is the previous one. how to solve that? thank you

  • i've tried your shortcut, it works for the first time. but, when i want to copy-paste new text, the one that get pasted is not the newest text. how to fix this?

  • it works for the first it copy-paste the right text, but when i select other text, the first text will always be copied.

Add a Comment

Still not fixed, pfff

I am also facing the same even after updating to XCODE 14.1: MAC OS: 12.6 Monterey, Apple M1 Pro

Not able to copy paste in app.

if anyone found any solution, please let me know as well.

it seems it was an issue that Apple fixed in the latest XCode updates, copy/paste works with me on a simulator with IOS 16.2 and XCode 14.2

  • Apparently it's not completely fixed yet.

    This happened to me with Xcode 14.2 and simulator iOS 16.2. It was working before, but suddenly stopped working and restarting simulator didn't work. Eventually after I switched Simulator to use another device it started working again.

Add a Comment

I just came across this problem: Mac Mini 2020 (M1, macOS 12.6 for now), Xcode 14.2, iOS 13.5 simulator (iPhone SE 1G)

I copy text (from a TextEdit text file) either with cmd+c or right-click "copy" but it won't paste into a text field in my app in the simulator: Cmd+v doesn't do anything, the right-click menu doesn't even open and Edit - Paste (menu) is greyed out. Copy and pasting from the simulator to the simulator works and if I copy something from the simulator, then copy something else from the text file and paste in the simulator, it only pastes the simulator text.