Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 17    Views: 102

Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
12/06/13 06:08 PM (11 years ago)

Adding Scringo iOS... BT_NavigationController.h Not Found

Strange error, tried downloading my code three time. It's hard to decipher the installation instructions because there are so many variations. One say to change certain lines for the new 3.0 core, which I have done, and then there are two videos, 1 which says to drag the scringo framework folder into your your project, the other says drag it into your projects /BT_Core folder. I've done both (which shouldn't matter, as long as it's there), but always get an error when compiling. I've also made sure that I added the required frameworks in the build phases section. Here is the error: BT_NavigationController.h Not Found Interestingly enough, when I did a search on my mac for that file, it wasn't in my project, but WAS in one of my old projects. I'm guessing it's a reference from the old buzztouch 2.19 and is no longer used, and the Scringo framework is trying to reference it? Any ideas?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
12/06/13 07:12 PM (11 years ago)
If you're working with BT v3.0 it's no longer called the BT_navigationController. It's now just BT_navController I bet if you did a search/replace for BT_navigationController and replaced it with BT_navController things would perk up a bit. Cheers! -- Smug (Both would be located in your projects 'layout' directory. As well as a few newly renamed files.)
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
12/06/13 07:18 PM (11 years ago)
Getting closer! Created 6 more errors though by doing that. All of the errors are in the Scringo plugin file SRC_chatRooms.m , which is alos the one that revered the old format BT_navigationcontroller.h It's almost like the plugin isn't 3.0 compatible, but it was just released and even gives 3.0 core instructions on their tutorial. I built my project using the "use 3.0 core" option on the download page... I even tried 3 times to make sure, haha. I'm even using the hosted version instead of my self hosting just to make sure it's not my server doing something funky.
 
shenry
Aspiring developer
Profile
Posts: 469
Reg: Jan 10, 2012
Orange County, ...
13,390
like
12/06/13 07:23 PM (11 years ago)
I tried search/replace too and got a mess of errors. I can see BT_navigationcontroller.h in BT2.0 and BT_navcontroller.h for BTv3. http://s24.postimg.org/5bwiby7n9/scringoplugin.jpg
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
12/06/13 07:26 PM (11 years ago)
Yep, exact same problem I'm having. :( Unfortunately the search and replace throws a variety of errors, with autorelease, release, arc, etc. Looks like the built plugin doesn't like the 3.0 arcitecture
 
shenry
Aspiring developer
Profile
Posts: 469
Reg: Jan 10, 2012
Orange County, ...
13,390
like
12/06/13 07:26 PM (11 years ago)
I also tried creating a sample app with BT-hosted thinking it might be a self-hosted issue. No luck. I'd love to know if you figure it out. I'm going to leave a post at http://www.buzztouch.com/forum/thread.php?tid=D053C4476AE01E140AD0049 It's the post announcing the plugin - the developer says it's BTv3 compliant.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
12/06/13 07:36 PM (11 years ago)
Will do. Also after adding the framework, and adding the code to my appdelegate file [Scringo initWithAppId:@"MY_APP_ID" completion:nil] (replacing with my own app id of course) It throws a "use of undeclared identifier 'Scringo'" error Just a quick look, it almost looks like it should be "ScringoAgent" instead of Scringo, even though the documentation said to put it in like that. But popping in ScringoAgent didn't work either. I've added the scringo framework, and manually added the import to my appdelegate.h, so no idea. I've also found 3 different variations of that particular line of code in online tutorials, none of which worked for me... tried to go by date based on the 3.0 core release to see which were applicable, but in the end it didn't matter, none worked. I'm going to have to scrap scringo for now. There's just too many variables and conflicting instructions and versions to sort out for the time being :(
 
shenry
Aspiring developer
Profile
Posts: 469
Reg: Jan 10, 2012
Orange County, ...
13,390
like
12/06/13 07:43 PM (11 years ago)
Guy, The developer with Scringo says, "I believe BT_navigationController is available starting with 3.0 (as the info in its header suggests). Can you check again ? " ...And the plug has gotten two 5 star reviews.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
12/06/13 07:45 PM (11 years ago)
Yeah, I seen that, but it's not. At least not in my downloaded 3.0 projects, neither self hosted or bt hosted. Like Smug says, is was renamed BT_navController it looks like. Just tried dropping in an old version of BT_navigationcontroller from one of my old projects, all that did was gave me the same 6 errors as I had when I did a search and replace with bt_navcontroller. Just thought I'd save you the time of trying it ;)
 
shenry
Aspiring developer
Profile
Posts: 469
Reg: Jan 10, 2012
Orange County, ...
13,390
like
12/06/13 11:45 PM (11 years ago)
Ok, this makes a little more sense. When I only select "prepare iOS Project" it downloads BTv2 - and Scringo Chat plugin works. If I select "Use the Buzztouch core for 3.0 iOS" the plugin won't work ( BT_navigationcontroller.h/ BT_navcontroller.h error) http://goo.gl/Zghx5b
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
12/06/13 11:48 PM (11 years ago)
Yep, so it truly isn't 3.0 compatible. Dang, I was hoping to use it in my newest app. Maybe by the time I have it completed they will release an update.
 
guyfeder
Veteran developer
Profile
Posts: 14
Reg: May 07, 2013
Ramat-Gan
140
like
12/08/13 01:42 AM (11 years ago)
Hi all, I just updated Scringo's Chat Rooms plugin to be truly BT 3.0 compatible. I must admit the change confused me but I believe all is sorted out now. Do notify us if there are still issues ...
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
12/08/13 02:35 AM (11 years ago)
Way cool. Thanks Guy! :) Cheers! -- Smug
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
12/08/13 06:13 AM (11 years ago)
Thanks Guy, I'll give it another shot :)
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
12/08/13 10:44 AM (11 years ago)
Getting closer. Scringo now works, when I call it manually from my app. Adding the sidebar code however does not. When adding: [Scringo addSidebar:self.window toLeft:YES]; It pops an error saying property 'window' not found on object of type "BT_loadConfigDataViewController" Any ideas?
 
guyfeder
Veteran developer
Profile
Posts: 14
Reg: May 07, 2013
Ramat-Gan
140
like
12/10/13 12:58 AM (11 years ago)
Note that the line of code should be: [Scringo addSidebar:appDelegate.window toLeft:YES]; (appDelegate.window and not self.window).
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
12/10/13 01:00 AM (11 years ago)
Yep, tried that after seeing the new documentation. Same error, but seen your email as well and will let you know how it goes
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
12/14/13 12:28 PM (11 years ago)
I was added it to the wrong method Look by line 369 and add this [Scringo addSidebar:appDelegate.window toLeft:YES];
 

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.