PDA

View Full Version : lesson learned


mek
10-05-2008, 07:03 PM
I've been pulling my hair out for about two weeks finishing up the development on my new app...but there was one problem...it had a syntax error

I spent those last two weeks, rewriting the program, completly stumped because i fixed the syntax error logically, but it still existed

the fix: close xcode, close the simulator, and restart the SDK....and viola it magically fixed the syntax error

apparently it was still running off a buffer in the simulator and would not update the new code

so for all you programmers out there, stuck on a problem, put it down, turn off your machine, take a walk, and come back to it, and it may just be fixed

NotYou
10-05-2008, 07:28 PM
I do a lot of work on Logic Pro and Final Cut. I've found that %90 of problems on a Mac can be solved by restarting the whole thing or even just closing the program and opening it again. The power button has become my magic fax all button.

wilson
10-05-2008, 07:42 PM
whats your app mek ? : D

BATTLE BORN
10-06-2008, 01:34 PM
I took a semester of computer science in high school. basically all I learned was how to copy code from smart people.... haha
I dropped the class as soon as I had enough credits to graduate.

I gotta hand it to you guys. I wish I had the patience to stick with it.

mek
10-06-2008, 01:52 PM
whats your app mek ? : D

i'll post some screen shots as soon as I submit it to apple, which hopefully will be by Friday

im more of a graphics person than a programmer, so the programming is def. challenging..but im picking it up..today now that i have the interface coded and working smoothly, i will build the graphics for it - the fun part

ive never programmed on a mac before, well before august 27th, and the OS is great, never crashes like a windows machine...i guess there are advantages and disadvantages to that...

Hitman45
10-06-2008, 03:42 PM
Good luck with your app. I hope it does really well.

Rocketman919
10-06-2008, 06:02 PM
Is this a game we are talking about?

kwigbo
11-05-2008, 05:10 PM
I have wasted hours because of what you speak of. Now whenever errors don't go away and I think they should I always restart.

moopf
11-06-2008, 03:03 AM
I've been pulling my hair out for about two weeks finishing up the development on my new app...but there was one problem...it had a syntax error

I spent those last two weeks, rewriting the program, completly stumped because i fixed the syntax error logically, but it still existed

the fix: close xcode, close the simulator, and restart the SDK....and viola it magically fixed the syntax error

apparently it was still running off a buffer in the simulator and would not update the new code

so for all you programmers out there, stuck on a problem, put it down, turn off your machine, take a walk, and come back to it, and it may just be fixed

Yes, I've encountered this a lot. Another thing to watch out for when you get to the final build stage is to make sure you restart XCode after changing build profiles as it seems to get confused frequently and easily, especially when you're changing certificates etc.