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

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

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"

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?

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.

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.

it is unresolved on 13.2.x , M1 Mac Monterey. Are there any workaround to get this thing working? Seriously it is more annoying if we want to copy something from the safari on simulator or any trace from the app which doesn’t have build enabled from the machine

we need a solution!!!! BUT ASAP!

ticket issue FB9889187

Am I the only one that's also seeing this issue on device? I started noticing it with iOS 14 and it's continued intermittently on iOS 15 too. Every once in a while my app just stops being able to paste text that was copied from anywhere. Force-quitting the app fixes it so that the app can paste again.

I've never gathered a sysdiagnose or anything, but I do have logs from when it's happened in the simulator too.


2022-01-19 22:57:34.052240-0600 Testing[13092:3724690] [scoped] <0x283552940 file:///var/mobile/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/e773525714f94678cc813686e707bb53ec1d2285>: internal sandbox error for <StartAccessing>

2022-01-19 22:57:34.060486-0600 Testing[13092:3724763] [claims] Upload preparation for claim 2B831962-7238-4C74-B05E-396F22C916EA completed with error: Error Domain=NSCocoaErrorDomain Code=257 "The file “e773525714f94678cc813686e707bb53ec1d2285” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///var/mobile/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/e773525714f94678cc813686e707bb53ec1d2285, NSFilePath=/var/mobile/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/e773525714f94678cc813686e707bb53ec1d2285, NSUnderlyingError=0x281ddb0f0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}

2022-01-19 22:57:36.086917-0600 Testing[13092:3724763] [scoped] sandbox_extension_consume error=[12: Cannot allocate memory] for path /var/mobile/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/e773525714f94678cc813686e707bb53ec1d2285

2022-01-19 22:57:36.087037-0600 Testing[13092:3724763] [scoped] <0x28354b600 file:///var/mobile/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/e773525714f94678cc813686e707bb53ec1d2285>: internal sandbox error for <StartAccessing>

2022-01-19 22:57:36.094329-0600 Testing[13092:3724690] [claims] Upload preparation for claim 1B54B832-0C50-4ABE-A4CA-72331726C2D5 completed with error: Error Domain=NSCocoaErrorDomain Code=257 "The file “e773525714f94678cc813686e707bb53ec1d2285” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///var/mobile/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/e773525714f94678cc813686e707bb53ec1d2285, NSFilePath=/var/mobile/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/e773525714f94678cc813686e707bb53ec1d2285, NSUnderlyingError=0x281dcdbf0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}

Not fixed!

This is affecting me, too. I am running my simulator as arm64, but my binary is Intel, since some libraries we use do not have arm64 simulator builds.

This is a huge painpoint for us, because we frequently have to copy long, random strings into the simulator. I've submitted a bug in Feedback Assistant: FB9905193.

It is still present in Xcode Version 13.3 beta 3 (13E5104i).

Same issues as everyone else, i.e. recently migrated to M1 MacBook Air and paste no longer works in iOS 15.4 Simulator. I downloaded 13.7 simulators as suggested, paste works in 13.7 but now (in 13.7) certain kinds of videos (streams) refuse to load. Xcode 13.3; running in Rosetta mode (using some libraries e.g. AFNetworking that aren't yet updated/supported w/ new M1).

Any new insights into (fixing?) this issue appreciated.

Same for me macOS Monterey 12.3 Xcode 13.2.1

The issue seems to arise when you add arm64 as an excluded architecture, which affects some sort of sha-1 hash output. This hash seems to be used as the filename for the file used to transfer contents from your developer machine to the simulator, but because there's now a mismatch, that transfer fails and pasting fails to work. At least, that's my theory. I've filed a bug under ticket FB9964084, which includes a demo project.

M1 Xcode 12.5 can't paste clipboard
 
 
Q