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.
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.
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.
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.