Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 98

Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
06/24/12 01:44 AM (13 years ago)

Scringo error confused???

Hey guys, followed @anjamespiano's guide to installing scringo's SDK into my BT project. To be quite honest the process seemed fairly simple. So I DL scringo, place into my project folder, drag into my Xcode project. Added #import <Scringo/ScringoAgent.h> & this piece of code [ScringoAgent startSession:self.window locationManager:nil andFacebook:nil]; to my _appdelegate.m file on line 340. Followed the rest of the guide up until the optional Facebook feed integration. The project builds fine but I get a warning in Xcode !Class method '+startsession:location manager and Facebook manager not found (return type defaults to id) and then when I try and run in the simulator the app pauses and I get an error in the main.m file? Xcode highlights the following code: int retVal= UIApplicationMain(argc,argv,@"UIApplication",@"_appDelegate"); and I get the following in the log file: 2012-06-24 09:38:32.342 thebassprofessor[2018:17f03] thebassprofessor_appDelegate: hideProgress 2012-06-24 09:38:32.342 thebassprofessor[2018:17f03] +[ScringoAgent startSession:locationManager:andFacebook:]: unrecognized selector sent to class 0x1b875c 2012-06-24 09:38:32.343 thebassprofessor[2018:17f03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[ScringoAgent startSession:locationManager:andFacebook:]: unrecognized selector sent to class 0x1b875c' *** First throw call stack: If I comment out this [ScringoAgent startSession:self.window locationManager:nil andFacebook:nil]; then the app runs fine Ive gone over the guide several times and I'm pretty certain I have followed it exactly. Help guys I really want scringo in my app!
 
Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
like
06/24/12 07:00 AM (13 years ago)
UPDATE! Been playing around with this all day trying to get it to work. I tried installing using Scringo's guide inserting this line of code [ScringoAgent startSession:@"Sdj1VZUH2TgHLFM5F3agI9megQaovCdF" locationManager:nil]; here: (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions ran simulator and although no errors, also no Scringo. Eventually figured out it is the andfacebook:nil which is causing the app to pause so inserted this line of code: [ScringoAgent startSession:self.window locationManager:nil]; at line 340 and ey presto I have Scringo (kinda!) However the formatting is terrible, I see no icons or menu system just white text.
 
lsills81
Apple Fan
Profile
Posts: 469
Reg: Mar 19, 2012
location unknow...
14,090
like
07/03/12 08:34 AM (13 years ago)
How To: Install Scringo on iOS BTv2.0 Self Hosted App First: HUGE THANK YOU TO @MacApple AND @ianjamespiano FOR ALL THIER EFFORTS!!!! They are the reason this tutorial is here. We just thought a video would be nice to add to the BT Community and also show that Scringo is compatible with BTv2.0. Video Tutorial on how to install Scringo on your BTv2.0 iOS App....next vid will be for FaceBook integration. Text File: http://cl.ly/193w151T0V2R0k3S2L2U Video: http://www.youtube.com/watch?v=bENvJlt0eps Screen Shots: http://cl.ly/2S3e3q3P292R3j2k2718 / http://cl.ly/2b1x2C0Q241G0d1V0h3L
 
Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
like
07/03/12 11:29 AM (13 years ago)
awesome thanks, ill let you know how I get on
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
07/09/12 12:40 PM (13 years ago)
[ScringoAgent startSession:self.window locationManager:nil andFacebook:nil]; this is old code, it's referring to an old version of the API. Try this: [ScringoAgent startSession:@"YOURKEYINHERE" locationManager:nil]; it works! I got this info from Ofer at Scringo
 
lsills81
Apple Fan
Profile
Posts: 469
Reg: Mar 19, 2012
location unknow...
14,090
like
07/09/12 12:47 PM (13 years ago)
Just explicitly follow the steps here...Text File: http://cl.ly/193w151T0V2R0k3S2L2U
 

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.