Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MCS

macrumors newbie
Original poster
Nov 3, 2006
23
0
UK
Hi,

I'm having a really weird problem, or should I rather say annoyance, with XCode (2.4.1). Whenever I start it up for the first time I get a beachball for over a minute before I can actually do anything.
The beachball appears whenever I try to open any window in XCode after startup (preferences, a project etc.). After the first window is there and the ball is gone I never see it again.
I tried reinstalling XCode, same problem. Reinstalling OS X (not because of this problem) same annoying beachball in XCode. As I said it's not really a problem because everything works fine after the beachball has vanished but it is a major nuisance if I want to get started and have to sit there watching the ball spinning (I cant even quit XCode while it's in that state but all other programs work fine while XCode is starting up). Any suggestions on what this could be? Or is this normal behaviour?
Someone suggested to me, that it could be the indexing for 'code sense' which is bogging the startup down but I tried deactivating that with no change and anyway why would it index anything without a single project open and me just trying to open up the preferences?

Any advice would be welcome,

Mark

Btw the system I'm running XCode on is a new MacBook Pro, 2.33GHz and 2GB RAM
 

Eraserhead

macrumors G4
Nov 3, 2005
10,434
12,250
UK
It doesn't do that for me, I have a MB 2Ghz with 2GB RAM, I was gonna say "hardware problem" but your hardware is highly speced.
 

bronxbomber92

macrumors regular
Nov 23, 2006
109
0
I get this problem as well. What version of Mac OS X are you using? I noticed mine started happening around the time I upgraded to 10.4.8, and also Unity (the 3D game engine) also stoped working when I upgraded. I know there is a problem with very few Intel macs on 10.4.8+ (I believe it has something to do with prebinding). I don't know how to fix though :(
 

MCS

macrumors newbie
Original poster
Nov 3, 2006
23
0
UK
I'm currently using a fully patched 10.4.9 system.
 

kpua

macrumors 6502
Jul 25, 2006
294
0
The most useful thing to do in this case would be to actually run Shark or Sampler on Xcode and find out what the heck it's doing that is taking up so much time. If it happens every time this shouldn't be too hard to do. Then you could submit a bug to Apple and they can fix it.
 

Legolamb

macrumors 6502a
Nov 27, 2006
627
0
North of where I'd like to be
Since 10.4.9, the only thing I've noticed that my InterfaceBuilder window sometimes "lost" First Responder when setting up a Carbon application project, but that's working now. No other slow down or problems.
 

gnasher729

Suspended
Nov 25, 2005
17,980
5,565
Is it trying to access anything on a server that isn't mounted, like having projects in the "Recent Items" menu that are not available? Or maybe it is checking for updates when your Internet connection is down?

Start Activity Monitor first and check what is going on.
 

MCS

macrumors newbie
Original poster
Nov 3, 2006
23
0
UK
Well distributed building is turned off and all my projects are stored on my internal harddrive. And updates and such things shouldn't be a problem as I'm connected to the net permanently and the connection shouldn't be a bottleneck either as it's a dedicated 10MBit line.
I filed a bug report with Apple so I'll just have to wait and see if something changes.
 

MCS

macrumors newbie
Original poster
Nov 3, 2006
23
0
UK
OK, as there were other people in this thread that seemed to have the same problem I thought I should post the solution to the problem. It seems that the culprit was distributed building after all which is odd as I have completely deactivated it. Here's what I did to resolve the issue:

- In the preference window of XCode go to the 'Distributed Builds' option
- Make sure that there are no ticks in any of the option boxes (as was already the case with me)
- Unlock the preferences to be able to make changes (click on the padlock)
- In the first option ('Share my computer for shared workgroup builds (distcc)') make sure the CPU priority is set to 'low priority' (With me it was on high by default)

After that change XCode should not freeze when opening it for the first time. As I said I find this weird as I have all options for distributed builds deactivated so I don't see how this option should affect performance in the first place.
 

mcmuffy

macrumors newbie
Jan 14, 2007
19
0
Waking an old thread I know but I have this problem with a 2gb ram IMAC (new style) running leopard. Xcode does run but only after a minute or so of beach ball.

Ray
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
Waking an old thread I know but I have this problem with a 2gb ram IMAC (new style) running leopard. Xcode does run but only after a minute or so of beach ball.

I'm assuming Xcode 3? Did you do a clean install of Leopard or an Archive and Install?

You could always install Xcode 2.5 (works alongside 3.0).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.