Xcode is slow

I am currently working on a big project, that includes over 100 IBOutlets and a lot of code. It is impossible to still work on that project the way my Xcode is now. If i try to create an array with over 30 items, it won't stop indexing. And it takes forever to navigate or just to move an UILabel. It also complains that source editor functionality is limited. + my mac gets really hot and makes noises. I have got a MacBook Pro 13.3" Retina MF839. I have deleted derived data, and almost all other projects files.


How do i fix this? Surely my mac should be able to cope with such a project(?)


I put all my code in the viewController, does that play a factor?

Generally speaking if you have tons of stuff to display it is better to create the objects programatically rather than using Interface Builder or Story Board. You not only reduce compile time but also get faster load and handle time, plus if you do it wisely you can make bulk changes on your UI in matter of seconds semi-automatically, instead of going trhough all the elements manually and make changes one by one.

>it won't stop indexing.


You may have a corrupted index.


Use Xcode's Product menu, then, with the option key pressed, select 'Clean Build Folder' to force a fresh index. Confirm no errors in the navigator and go again.


Still no joy, confirm you're not down on free space on your hard drive.

Xcode is slow
 
 
Q