I'm intermittently encountering a frustrating bug in Xcode where the copy CMD+C does fails with the following symptoms:
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.
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.
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.
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.
Turning off the 'Automatically Sync Pasteboard' option in the Edit menu of the Simulator.
Ref: Apple Developer Forums
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With