Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 5    Views: 2216

NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
01/04/14 09:25 PM (11 years ago)

terminating with uncaught exception of type NSException (main.m -iOS)

Had been using BTv2 for demo project that used a lot of plugins fine. Today i built my first BTv3 demo with only Splash, Login and Scratch for a simple test. Just fixed all of the warnings for iOS 6 and 7 in Xcode thanks to Niraj's posts. However now after successful build App terminates with exception on line 39 of main.m Made no changes below?? ================= #import <UIKit/UIKit.h> int main(int argc, char *argv[]){ //return scratchdemo_appDelegate as UIApplicationMain... @autoreleasepool{ int retVal = UIApplicationMain(argc, argv, @"UIApplication", @"scratchdemo_appDelegate"); return retVal; } } ================= Any ideas?? Kevin
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/04/14 09:43 PM (11 years ago)
That's a little sticky at time; it will error out 'there', and the cause is no where near there. It's one of your changes, although there is no telling 'which' change it is. If somehow possible, go and undo what you've done, and do a build a little more often, so you'll be able to track your changes, and the effect it has on your overall build. If you haven't done so already, check out Chris1's excellent write up on Xcode debugging, and Go North West's documents on both iOS and Android logging. All of it has useful info that helps when doing this kind of troubleshooting… https://www.buzztouch.com/files/howtos/Problem_Reporting_and_Basic_Debug_v1.0.pdf https://www.buzztouch.com/files/howtos/exception%20debugging%20how-to.pdf I also drop "BT_debugger" statements all over the place. It helps when tracking down issues if you can narrow down 'where' the problem starts… Good Luck! Cheers! -- Smug
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
01/05/14 08:25 AM (11 years ago)
Thanks Smug. Those are two great links to PDFs by Chris1 and GNW. These will really help when I get back at it tonight.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
01/05/14 08:55 AM (11 years ago)
I got the same thing when logging into Facebook with my app in scringo. The rest of scringo functions fine... It's only when using Facebook to login. Strange, because it was working perfectly fine, then I come back to the code a week later and it's throwing that exact error with no changes made... Even my backup project that I keep just in case I screw something up is doing it. Tried tracing it and couldn't. I think I'm going to remove scringo for now, finish my app, then readd it at the very end.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/05/14 10:20 AM (11 years ago)
Start over. Get fresh download for everything. Use BT v3. ------- Another way is to remove all those three plugins by deleting them from Xcode. Let Xcode move those plugins to the trash. You can always drag back out of trash and then drop into Xcode after the test. Fix all the warnings and errors you desire. Then run it. If it runs, the BT Core will report "screen not found". That is a good error because we are expecting it. The (good) error happens due to the plugin (screen) having been removed. But the code ran! (or not) -- Niraj
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
01/05/14 02:26 PM (11 years ago)
Ok. Built an empty BTv3 App no plugins. The (good) -It reports the 30 known depreciation issues. The debug window is back without the Exception error- so now to go back edit-build, and repeat often so I don't mess it up again. BT_tabBarController.m (4) BT_audioPlayer.m (5) BT_viewUtilities.m (3) BT_viewController.m (18) These are already listed in the BTv3 bug list. It sure would be nice if someone at BT could spend the hour to fix those, so everyone does not need to type the same into every new project ;) Until BT fixed... When I have good versions saved, assume I can copy over into new projects following downloads.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.