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

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.

  • Adding same issue even when not running in Rosetta mode. No copy&paste in 15.4 simulators.

  • Same issue running Xcode 13.2.1 on M1 w/ BigSur and iOS 15 simulator. Downloaded iOS 13.7 and now paste works.

Add a Comment

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.

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.

  • If possible, try iOS 13.x simulator. Paste worked there for me. M1 + BigSur + Xcode 13.2.1.

Add a Comment

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…

Post not yet marked as solved Up vote reply of mdee Down vote reply of mdee
  • 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.

Add a Comment

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.