I've just updated to Xcode 9.4.1 and experienced an issue with the clipboard being cleared randomly.
So I select a text, hitCMD+C, then go to the position I want to paste it, hitCMD+V, but either
- it plays the system alert sound and doesn't paste anything, or
- it pastes a previous snippet that I copied earlier.
Update
Still remains with Xcode 10.1
Update 2
Still remains with Xcode 11
- I've experienced this issue numerous times with older Xcode versions as well. Not sure if it has to do anything with my clipboard manager (I'm using Copied, I used iClipboard before and the same issue occurred to me back then).user3151675– user31516752018-06-14 12:30:31 +00:00CommentedJun 14, 2018 at 12:30
- I use Alfred, but never had an issue with that before ...Lukas Würzburger– Lukas Würzburger2018-06-14 12:39:09 +00:00CommentedJun 14, 2018 at 12:39
- @matt I know that it's a valid workaround, but I'd rather use punch cards than copying and pasting with my mouse (touchpad). I usually just copy the selected part again and it works.user3151675– user31516752018-06-14 12:50:01 +00:00CommentedJun 14, 2018 at 12:50
- 1@matt Because it happend right after the update of Xcode. So still programming related. Because IDELukas Würzburger– Lukas Würzburger2018-06-14 12:53:15 +00:00CommentedJun 14, 2018 at 12:53
- 1I noticed the same problem with the Xcode 10 update. At first I thought it was me that didn't properly copied the text (even though it almost never happened before) but I just cut/paste some text and when I was about to paste it, nothing... I checked and it was properly copied to my clipboard manager. I'm pretty positive it's an Xcode problem.Nico– Nico2018-09-26 04:45:17 +00:00CommentedSep 26, 2018 at 4:45
5 Answers5
Turning off the 'Automatically Sync Pasteboard' option in the Edit menu of the Simulator works for me. I read it in Apple forums
5 Comments
Comments
Also read in the Apple forums that closing the simulator while working fixes this issue. So if it happens to me I close the simulator and copy-paste works fine from that point forwards.
Haven't tried it yet but I have feeling that Eva's answer is correct in that the simulator is trying to sync your pasteboard.
** Edit **
Can confirm that Eva's answer works and I no longer have this issue when I turn of automatic syncing on the simulator
Comments
The accepted answer doesn't work for me. See my comment there.The problem is with the Handoff.
I had theHandoff option enabled in OS X Settings > General.
Afterunchecking that option, I have the clipboard synced and no simulator freezes.
Comments
You Can try this one:
This is the officially recommended way to reset Xcode's preferences, type in Terminal.app:
defaults delete com.apple.dt.XcodeComments
Explore related questions
See similar questions with these tags.







