My Xcode compiles are taking longer and longer.
Each time I compile it cla开发者_运维百科ims it's compiling one file in the Activity window even though I would not have editede it and it has no dependence on the files I'm editing. In the Build window it claims it's compiling another file (the right one).
I have tried cleaning, precompiled headers are in place etc..
This is Xcode 3.2.2
Why is this happening?
Which hard disk is your project on? Could it be a slow drive and/or a full disk kind of issue? I presume its not a networked drive...
What does the Activity Monitor show - is the machine 100% busy CPU-wise or not?
I had a similar problem and I tracked it down to a choppy/really slow Internet connection. Disabling the internet connection by shutting off the wi-fi would make the compiling fast again. The final solution was to stop using my neighbour's wifi and get my own (<- Joke ... not really ... jaja :/)
I'm not sure what is XCode doing over the Internet connection, but with a poor connection some sort of timeout seemed make the building process VERY slow.
This may not be your problem but it is easy enough to test. Cheers!
Quite often, problems like this can be fixed by going into your application directory and deleting the BUILD directory. X-Code automatically generates this directory upon compile anyway so you won't lose any data, it just cleans things up a little and MAY allow you to compile quicker in the future.
Source: Alan Cannistraro, Stanford University on one of his iPhone Developement Class Podcasts
Try and update XCode? (do not read the following : answer needs 30 characters, so I fill my answer with this sentence)
精彩评论