Hi Guys,
So I am new to iOS development.
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:
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!
(I will probably laugh about this later...)
So I am new to iOS development.
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!