Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 10.1 - How to fix broken copy/paste not working?

I'm intermittently encountering a frustrating bug in Xcode where the copy CMD+C does fails with the following symptoms:

  • It clears existing item in the pasteboard
  • It fails to copy content into pasteboard
  • Upon pressing CMD+V a sound is playing and nothing gets pasted (no previous or current item)
  • Both CMD+C or Edit>Copy can fail the same way.

I've seen a number of suggestions to kill the Pasteboard process and restart Xcode, however this does not seem to work (well). The problem persists and is quite annoying and intermittent. I encountered it on multiple devices(Multiple iMacs, Macbook Air 2011, Macbook Air 2018) with multiple versions of OS (High Sierra/ Mojave).

How do I permanently fix/restore Xcode 10 copy/paste functionality?

It might be my superstition at this point, but it appears that if I hold the CMD+C longer than usual by 0.3 seconds or so, it is more likely to actually work. If I press the buttons normally (rapidly), it gets stuck in the broken state with the existing pasteboard item gone(so something did register), but the item I wanted to copy not available.

enter image description here

like image 806
Alex Stone Avatar asked Mar 14 '19 11:03

Alex Stone


People also ask

Why has my copy and paste stopped working Mac?

Force Close and Reopen Your Apps If the problem is specific to a few Mac apps; force-quit and re-open the affected app(s). This refreshes the app and possibly restores the copy and paste functionality. Press Command + Space bar to launch the Spotlight Search.

What do you do when something won't copy and paste?

One of the most common causes of copy and paste issues on Windows is when an installed application is interfering with the clipboard. Uninstall those applications to see if that fixes the issue. If you struggle to remove them, try using uninstaller programs to force delete them. Scan for viruses or malware.

Can I copy code from Stack Overflow?

So, in summary: code snippets on Stack Overflow are protected by copyright unless they are so small that any two programmers would come up with substantially the same code.


1 Answers

Turning off the 'Automatically Sync Pasteboard' option in the Edit menu of the Simulator.

Ref: Apple Developer Forums

like image 180
Finder丶Tiwk Avatar answered Nov 15 '22 06:11

Finder丶Tiwk