I’m very unthusiastic about the courses but since 4 days my MacBook and related Xcode is extremely slow.
Typically to build and run the CollectionView exercise at lesson 3 it takes more then 15 minutes.
Does anyone has an idea what to do. On the internet is see many topics on this subject but no real solution.
I have Mac OS High Sierra en XCode 9.2 (9C40b)
It is annoying because all the fun of making the exercises / challenges is now gone.
Hi @luclannoo,
One of the issues with the new builds of Xcode after 7.0 have had veteran developers complain about them too. There are too many things that are happening including source code coloring, to compiling for pre-compilation errors, syntax checking, etc. Source Kit can be a major contributor to this lag/delay. You can start Activity Monitor to check for what is slowing your machine down.
Swift is fun and it is a bit of a let down that the crispness of Xcode is down compared to earlier versions. However, do not let that deter you, you could kill SourceKit (if that is the main culprit) and you can literally gain your system back.
Jayant, this is my biggest problem. In the activity monitor I see that PC is doing almost nothing. (95% inactive).
The only process that is running and taking time is CoreSimulatorService.
I expect this is normal when building the app for usage on the PC with simulator.
@luclannoo,
Hmmm, that is strange, CoreSimulatorService is the simulator, and that should not interfere with the build process.
What kind of RAM do you have on your Mac and do you have enough disk space? What version of Xcode are you using?
If I come across other factors that could cause this issue, I’ll update the response here.
MacBook Pro : macOS 10.13.2
Memory : 8 Gb
Disk : SSD 167Gb available from 250
XCode 9.2 Build 9C40b
I’m thinking to re-install my full Mac but i’m afraid this will not help.
Could this be a HW problem. Sometimes my Mac just crashes without any sign / reason.
I can send you the code but it is the same code as in the tutorial (CollectionView after video n° 4).
So it should take only some seconds.
On my PC it takes easily more then 15 minutes. So the request for help is to find a way to detect where the problem is.
I already reinstalled MacOS en XCode.
To both, thanks for feed-back.
After reinstalling Mac Os and Xcode even a fully empty project compiles and runs in more then 15 minutes and lock fully my PC.
I have decided to bring them to an Apple repair center.
I think there is a Hardware problem too.
Hi @luclannoo,
Never thought that the Anti-virus was causing the delays…
Been working on Macs far too long, had forgotten how it was on Windows with all additional stuff clogging up the system.
Glad that you got your mac and xcode working and all good in terms of speed.