Xcode Clipboard: Copy & Paste stuck

让人想犯罪 __ 提交于 2019-11-29 02:05:07

问题


I've just updated to Xcode 9.4.1 and experienced an issue with the clipboard being cleared randomly.

So I select a text, hit CMD+C, then go to the position I want to paste it, hit CMD+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


回答1:


Turning off the 'Automatically Sync Pasteboard' option in the Edit menu of the Simulator works for me. I read it in Apple forums




回答2:


This really helps! Just uncheck the Automatically Sync Pasteboard




回答3:


The accepted answer doesn't work for me. See my comment there. The problem is with the Handoff.

I had the Handoff option enabled in OS X Settings > General.

After unchecking that option, I have the clipboard synced and no simulator freezes.




回答4:


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.

Apple forum article

** Edit **

Can confirm that Eva's answer works and I no longer have this issue when I turn of automatic syncing on the simulator



来源:https://stackoverflow.com/questions/50857133/xcode-clipboard-copy-paste-stuck

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!