★ TouchArcade needs your help. Click here to support us on Patreon.

lesson learned

10-05-2008, 07:03 PM
#1
Joined: Jul 2008
Location: Boston
Posts: 1,268
lesson learned

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
10-05-2008, 07:28 PM
#2
Joined: Sep 2008
Location: Colorado
Posts: 2,654
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.

10-05-2008, 07:42 PM
#3
Joined: Aug 2008
Location: Canada, ON
Posts: 76
whats your app mek ? : D
10-06-2008, 01:34 PM
#4
Joined: Aug 2008
Location: Las Vegas, NV
Posts: 690
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.
10-06-2008, 01:52 PM
#5
Joined: Jul 2008
Location: Boston
Posts: 1,268
Quote:
Originally Posted by wilson View Post
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...
10-06-2008, 03:42 PM
#6
Joined: Sep 2008
Location: Williamstown, NJ
Posts: 67
Good luck with your app. I hope it does really well.

Top Secret Eyes Only
10-06-2008, 06:02 PM
#7
Joined: Aug 2008
Location: Cali-forn-i-a
Posts: 2,302
Is this a game we are talking about?
11-05-2008, 06:10 PM
#8
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.

kwigbo.com - iPhone dev blog with code snippets and more.
----------------------------------------------------------------------------
iReviewFail.com Funny reviews from the iOS App Store
11-06-2008, 04:03 AM
#9
Joined: Sep 2008
Posts: 224
Quote:
Originally Posted by mek View Post
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.

"Arthur & Charles Present Create & Play" now available on the App Store
iTunes - Arthur & Charles Website