XVimProject / XVim

Xcode plugin for Vim keybindings
MIT License
5.16k stars 596 forks source link

Xcode 8 Freezes on Launch #969

Open jmitchem opened 8 years ago

jmitchem commented 8 years ago

Operation

Xcode 8 is running in "Applications/Xcode-beta".

Ran "make uninstall", then "xcode-select" to redirect it, then "make". Removed code signing per instructions.

Xcode launches into my last used file with XVim running in the editor, but Xcode does not respond and needs to be force quit.

I have retried with clean copies of the Xcode binary and restarts, but have had no luck.

Expected behaviour

[Write here]

Environments

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

tomaszwojcik commented 8 years ago

@jmitchem I had an issue with freeze on project creation, then I saw that there is a tccd process spawned (and it hogs CPU).

Killing the tccd process worked for me. However I'm not sure what this process does, I've found only this info:

It has the dialogs that display "[app] would like to access your [contacts|calendar|reminders]."

MavEtJu commented 8 years ago

I found a better way for when Xcode/XVim has the spinning beachball when started first time: Just let it run until tccd has finish. Use top(1) and sort-order (press O) -cpu to monitor.

When the first time you run Xcode, it verifies the checksum. So when you strip and resign, it needs to verify the checksum. However this time it does do it without a progressbar, which is very annoying.

zenangst commented 7 years ago

@MavEtJu thanks for the information, trying it out now. Any idea on how long this might take? I guess it depends on the machine that you are using. This thing really needs a progress bar.

zenangst commented 7 years ago

Side note: if you don't prefer top, the process also appears in Activity Monitor.

MavEtJu commented 7 years ago

@zenangst I must say that with the latest Xcode 8.1 and the instructions from XVim on how to build it on that platofmr (with resigning etc), I didn't have that delay and it all was smoothly.

zenangst commented 7 years ago

Oh nice! that's good to hear. I just setup a new MacBook Pro which caused these things to happened but just waiting for tccd to finish seemed to help. Thanks a lot for posting, you saved me a lot of more googling, hair ripping, swearing and raging. My co-workers thank you 😁

zenangst commented 7 years ago

@MavEtJu I summed up this and another fix in a Medium article that you can find here - https://medium.com/@zenangst/is-unsigned-xcode-giving-you-a-hard-time-cdc30d2c54b3#.4q0b4lf15