xCode crashes on every project??

Priapus

Honorary Master
Joined
Jun 8, 2008
Messages
21,565
Reaction score
16,457
Location
England
Hi Guys,

My Machine specs:

MacBook Pro 17" (Late 2011)
8GB DDR3 Ram
Core i7 (2.4 GHz)

Software: OS X 10.8.4 (Montain Lion)
xCode Version 4.6.2 (4H1003)
I updated from 10.8.3 to 10.8.4 this morning I believe.

The problem:

I've built a few projects that are very small test apps and I know they work perfectly fine (On device and Simulator)

On my latest project my app kepted crashing in the simulator - it would not crash every time. It crashes every time I start up the app for the second time.

Eg: Build / Run the first time - no compiler errors or warning - App launches in simulator and works
Build and launch second time - again, no compiler errors simulaor tries to launch (I get a black screen with status bar at the top) - xCode pauses execution and I get a green indicator at the following line in my code:

Code:
int main(int argc, char *argv[])

{

    @autoreleasepool {

        return UIApplicationMain(argc, argv, nil, NSStringFromClass([RotationAppDelegate class]));

    }

}

So I turned on all breakpoint exceptions and I went through every line of code in every class and could not find the issue. Few hours later I gave up.
I then decided to load a version of the app I know for a fact at zero issues and launched every time (You know in case I missed some syntax error)

Again xCode would crash everytime I ran the app in the simulator for the second time - WTF??

So I thought okay - let's open up an app that I have deployed to my device and I know it runs fine every time - no crashes...
Yup.. same problem at the same line of code (Obviously the class in the code is different - but same line)

Can anyone help me figuring this out as I just wasted a few hours debugging a program that doesn't actually have any errors! :mad: (I will probably laugh about this later...)
 
Okay to update anyone who has similar issues or has recently updated to 10.8.4
I found the problem over at Apple Dev forums:

The issue is related to a compatibility issue between LLDB and OSX 10.8.4. Switching to GDB will solve the issue.
Another possible workaround is waiting a few seconds after you have stopped your app in the simulator and using CMD + R to run again a few seconds later.
(This doesn't work all the time for me)

That is a "possible workaround" by posted over at Apple's Developer forums - for those of you who have access:

https://devforums.apple.com/message/817538#817538

Next time a S/W update is available for OS X - I am waiting a few weeks to see if there are any issues lol!


Edited to fix a typo.
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X