tompos
Veteran developer
Profile
Posts: 127
Reg: Oct 19, 2013
Würzburg
7,370
05/14/15 09:16 AM (9 years ago)

Missing plugin (yes, I moved the plugins folder to the project...)

I just downloaded a new project (iOS) and got the typical "Missing plugin" error. The problem is... I _did_ move the BT_Plugins folder to my project. My setup is as follows... OSX 10.10.3 Xcode 6.3.1 I used different menus for the first screen in a non-tabbed layout. All plugins were not detected, so it is not a problem of a specific plugin. Finally, I simplified my app by just including 2 simple menus... In any case, the following call Class theClass = NSClassFromString(theClassName); in BT_application.m led to theClass = nil (as observed in the debugger). The log says 2015-05-14 17:59:57.277 test2[57829:897806] BT_application: getViewControllerForScreen nickname: "Home Screen Menu" itemId: D2D107964B83E41BFEE8CB6 type: BT_screen_menuListSimple 2015-05-14 17:59:57.277 test2[57829:897806] BT_application: getViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: D2D107964B83E41BFEE8CB6 2015-05-14 17:59:57.277 test2[57829:897806] BT_plugin_missing: INIT ... and both BT_screen_menuListSimple.h and BT_screen_menuListSimple.m were present in the BT_plugins folder in my Xcode project. Do we have to include the plugins in a different way than before? Thanks in advance Thomas
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/14/15 09:27 AM (9 years ago)
Are you sure the download package included all the plugins you needed?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/14/15 09:45 AM (9 years ago)
Hmm... Check your BT_config.txt file, and make sure the class names match the plugins in the project... you may also want to check the Screen ID referenced by the menu json (in the BT_Config.txt file) against the actual screen itemID json to make sure they're correct... Otherwise, delete the plugin references and re-add them to the project... Good Luck! Cheers! -- Smug
 
tompos
Veteran developer
Profile
Posts: 127
Reg: Oct 19, 2013
Würzburg
7,370
like
05/14/15 10:00 AM (9 years ago)
Thanks... Yes, I checked all these aspects. Especially, the problem persisted even in a more or less empty project with just one screen (Home Screen Menu), no other screen added. The plugin folder contains exactly this one plugin... the Screen ID is correct, the screen is found, but the class can not be found by call mentioned above... Thomas
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
05/14/15 12:08 PM (9 years ago)
@tompos I noticed with the last xCode update that when you drag folders into the project, the "options for adding files" pop-up screen has changed the default setting to "create folder references." This needs to be changed to "create groups."
 
tompos
Veteran developer
Profile
Posts: 127
Reg: Oct 19, 2013
Würzburg
7,370
like
05/14/15 01:07 PM (9 years ago)
This was the solution, Red Dog, thanks, I missed this change. After I chose the "create groups" option everything was back to normal. I do not know whether this is part of the current "instructions.pdf" file, as my download did not contain this file ;-). Thank you so much! Thomas
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
05/14/15 03:19 PM (9 years ago)
Glad I could help.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/14/15 04:15 PM (9 years ago)
Nice Catch RD! Cheers! -- Smug
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
05/16/15 09:52 PM (9 years ago)
I spent some time on this too. Watch out for blue folders.
 
tompos
Veteran developer
Profile
Posts: 127
Reg: Oct 19, 2013
Würzburg
7,370
like
05/18/15 02:20 AM (9 years ago)
Yes, the color should have been a warning sign for me ;-).
 

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.