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

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.

Turning off the 'Automatically Sync Pasteboard' option in the Edit menu of the Simulator.
Ref: Apple Developer Forums

Related

I updated Xcode by hand -- App Store keeps trying at night

TL;DR: It appears that Xcode now auto-updates overnight if your Mac is connected to power. I did a manual install, but the (stalled) auto-update still tries overnight. How do I kill this zombie? (Yes, I can turn off auto-update in App Store, but I don't want to. And anyway, the problem would persist when/if I turned it back on.)
Longer: The following steps happened
Yesterday morning my Mac had the error dialog (paraphrasing here) "Could not update, you must quit Xcode"
I quit Xcode
Clicked "Update" in App Store app
Update stalled at 90%, App Store said "Pending"
(Simulator was still running; could have been the problem)
This stalling is a common problem, dealt with in many posts here, notably
Xcode update stuck after updating macOS
Xcode update stuck on "update"
I went to https://developer.apple.com/download/more/ and got and
installed the update by hand
That wasn't the end of my problems; see
Broken xib with xcode 10.3
This morning, I was welcomed with the same "Could not update, you
must quit Xcode" error dialog.
The App Store app still says "Pending" for this update. Apparently you used to be able to press the Option or Control-Option keys to reveal a "Cancel" button, but no longer.
Q: How do I cancel this pending update, short of de-installing current Xcode and re-starting the App Store process? (See How to Completely Uninstall Xcode and Clear All Settings)
Note: FWIW the file
~/Library/Application Support/App Store/updatejournal.plist seems to say my latest version is 9.2.
Note: another suggestion at https://apple.stackexchange.com/questions/345910/how-to-delete-partially-downloaded-updates-in-high-sierra is to delete all contents of $TMPDIR../C/com.apple.appstore/ but that seems drastic.
Note: In Launchpad, the Xcode icon has a blue dot next to it. Could my solution really be as simple as deleting the Xcode icon? Plenty of similar suggestions all over the web...
This seemed to do the trick: sudo softwareupdate --clear-catalog

XCode won't update from App Store

This night I've update my iPhone which I use to test my applications but that caused a problem of "Developer Disk Image", which, as I understood, basically means that Apple wants me to update my Xcode.
However, when I try to do so from "updates" tab in App Store, after I press "update" button, it just simply goes to "waiting" and then back to no progress at all. It does not update after that and the icon of the app in Launcher becomes grey, has a progress bar below it and stays at 0bytes.
I tried to delete the app and download it from the App Store again, but it all ends with Xcode.appdownload file being downloaded and that's it. Even if I try to launch that file (I know it's dumb, but should have tried) nothing happens. How do I get my App Store to work again?
Ok, I solved the issue - even though it does not mention System Updates anywhere, all I had to do is to update OS first. C'mon, Apple inc. get your scheiße together, just bugging away is not an answer!
The Mac App Store is broken beyond repair. You can try to reload the update page using CMD-R. That helps sometimes. In addition, Launchpad normally shows the progress correctly.
You can also update from Terminal.app using the command
softwareupdate -l
Good luck!

Xcode 5 on Mountain Lion 10.8.5 won't load

Since I installed the Xcode 5 from the App Store I can't start Xcode.
I click on the Xcode icon, then icon bounce 1 time then nothing.
The program doesn't respond...
I tried to uninstall and reinstall Xcode but I got the same problem.
I think the best way is to completely uninstall XCode and its accompanying utilities.
You can follow this link for that.
I am plagued by this problem. Ever since I updated to XCode 5 I have had nothing but trouble. When I open it it does nothing but it does say Application Not Responding when you right-click the icon in the tray.
Once I walked away and hours later when I came back it was open. So I tried it again and waited. around 30 minutes later, it opened. I've figured out that if you wait long enough, eventually it opens.
I know this is only a temporary, partial solution, but it may be all you have until the release Mavericks. I have read in searching for a solution that XCode 5 works in 10.9 but developers struggle using it on 10.8.5 <----- specifically 5!
I just installed the 10.8.5 supplemental 1.0 update and it didn't change anything for me.
Try to open the program and see if letting it sit for a while maybe even overnight, and see if it opens like mine. If so, maybe someone can help with that extra information.
Well i have the exact same problem that you are facing. This is how you can solve it:
First of all just uninstall the current version of Xcode from your Mac completely. You can delete it from the Applications. After that you will still see the Xcode icon in the LaunchPad and i don't know why. You have to delete it from the LaunchPad too. Just by clicking and holding until the cross button appears and then press the cross button to delete.
Once this is done, don't download it from the App Store. Instead download from a direct link. Go to this LINK and find the Xcode and download the DMG file. Then you can install it and you will have no problem.
You can either waste your time troubleshooting the problem or you can just do what i told you to save some time. The choice is yours!
Hope this helps!

Xcode 4 and 5 frozen with an empty tab on Launch

I've got this weird problem from last night, where I cannot open Xcode anymore!
It is stuck with an empty tab loading view, and is just not responding... :-/
I have deleted Xcode4 and re-installed, it keep giving me that same problem... And also tried with Xcode 5, and still.... so I guess the problem is somewhere on my computer... What can I do?
Really need to fix this for work.
Found my solution on a similar linked problem :
Xcode freezes on startup while loading project
Due to the restore feature, all the windows you left open in a given application remain open when you relaunch it. To avoid this, discard the previously open windows by holding the option key while pressing CMD+Q. Try starting Xcode and quitting it with option held before it's had a chance to open your windows, then re-launch it and it shouldn't try to open the windows.
Fixed the problem for me.

Xcode won't start after first launch?

I recently installed Xcode and after closing out of the first launch (because I realized I had more configuring to do). I cannot get it to re-launch. The icon will come up, but no program will show up. I do not get an error, and I am launching from the /Developer folder (not /Applications). I have tried re-installing/restarting multiple times to no avail. I have the latest version, and I am running Snow Leopard (10.6.6).
The icon will come up, but no program will show up.
Are you new to OS X? It sounds like you are describing the way OS X apps normally start up. By default, Xcode pops up a window with a list of most recent projects, but you can switch this off. It doesn't mean that Xcode isn't running, it just means you don't have any Xcode windows open. You can still select any of the usual menu items to start new projects, open existing projects, etc.
The answer to this problem is I believe easily sorted. Once you open X code and all you get is the menu bar at the top, go to Window, Welcome to x Code, then check the box bottom left hand corner of that screen 'Show this window when Xcode launches'
Job done ! Now every time you hit the Xcode icon where ever it is the welcome screen will open and from there you can proceed into the program.
Probably not your problem, but I had issues starting xcode with it trying to load up the last project I was working on. It would just hang and I had to force quit it.
In the end I deleted these directories:
project.xcworkspace/
xcuserdata/
and next time I tried to restart xcode it started fine.
Please go project folder and right click ."xcworkspace" and open "show package contents"-> xcuserdata and delete user folder and then relaunch.
In my case I launched XCode 6 (beta 7) on my MacBook Pro Mid 2010, and I had to wait for ~10minutes for anything to happen. I didn't see icon in dock, or even menu bar - just a reference in Force Quit Applications menu. After those 10 minutes classic alert with "You have downloaded Xcode from internet..." title appeared and then i had to wait another 5 minutes for another progress (installation of additional components).In overall it took Xcode 6 ~25 minutes to start.
So... Patience! :)

Resources