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

Any luck with a solution? I have the same issue, and I've been looking for a solution for months.

Are you running Xcode under Rosetta (or compiling for the x86-64 simulator)?

running xcode 12.5.1 and simulator under Rosetta and I have the same issue.

I also have the same problem, M1, macOS 11.5, Xcode 12.5.1, not running rosetta

  • Same here. M1, mac OS 11.5, Xcode 12.5.1, running Rosetta for both Xcode and Simulator wrong chat

Add a Comment

M1 Macbook Pro Big Sur 11.4 Xcode 12.5.1 (12E507)

Cannot manage to make it work either.

Same issue on M1 Air

So far I’ve been ignoring this thread because it started out with folks running Xcode and the simulator under Rosetta. This isn’t a supported configuration and I recommend that you switch to running these natively.

However, it’s now clear that multiple folks are hitting this while running Xcode and the simulator natively. Have any of you filed a bug about this? If so, please post your bug number?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • I'm sorry, but I think this thread shouldn't be ignored because people are running Xcode and the simulator under Rosetta. This is an available option on macOS and several projects (like mine) don't run natively due to 3rd party frameworks incompatibility. I'm just hoping to find a workaround while these frameworks don't support M1. Getting rid of the frameworks and buying an Intel mac aren't an option.

  • I have mine here FB9634285

  • I'm having the same issue. Been unable to paste inside a by Xcode build app, everywhere else in the simulator pasting works fine. Copying from the app to elsewhere also works fine. Am running an M1 mac, Big Sur, Xcode 13, iPhone 13 iOS 15 simulator.

    Created a feedback ticket: FB9718950

This is happening for me in Xcode 13 as well (including Xcode 12.5.1) for simulators >= 14. I can get pasting to work on iOS 13.7 simulators. I have an M1 Macbook Pro 13". I am not running Xcode in Rosetta mode. I have also reinstalled Xcode 12.5.1, and like I said, even with Xcode 13, this is still a problem.

Same here. Can't use Pasteboard in iOS Simulators >= 14 with Xcode 13 and 12.5.1 on M1 Macbook Pro 13". This has heavy impact on our UITests. Every test depends on Pasteboard for communication between the UITest and the tested app. For now we can only fallback to iOS 13 simulator.

Same behaviour described as n8tr99_ but on latest xCode 13.2 Beta

However have noticed i can paste into safari URL bar, but cant paste into app under test. Is there permissions involved?

Post not yet marked as solved Up vote reply of dftm Down vote reply of dftm

Same on Version 13.1 (13A1030d) Mac 16", M1 pro. Xcode launched without Rosetta. On the prev. macOS (intel i9) all was ok. This broken after backup applying

Same thing is happening with me, I cannot paste anything on simulator. I am using Xcode 13 with Rosetta.

I searched for an answer for this for some time. For Apple Silicon (M1) I eventually found a page where some users had tracked it down to an issue with iOS 14+. When I installed switched to a simulator iOS 13.7 as instructed (see link) pasting worked again. While this is clearly not what was going on with the original question (10 years ago!), I am pasting here in case someone else has this issue.

Hope this helps...

Still works to paste into app under test on iOS 13 sims, xcode 13.2.1. Mac Mini M1.

Still FAILS to paste into app under test on iOS 14+ sims, xcode 13.2.1. Mac Mini M1.

Can paste into iMessage and safari however, on iOS 14+ sims, xcode 13.2.1. Mac Mini M1.

Post not yet marked as solved Up vote reply of dftm Down vote reply of dftm

With Xcode 13.2.1, Mac Monterey 12.2, this issue is still unfixed on M1 MBP. So annoying! Had to switch back to Intel Mac Mini quite often. What a waste.

  • Same issue here, On Mac Studio :(

Add a Comment