Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
08/31/16 07:51 AM (7 years ago)

Plugin not found error in Xcode

I'm using Xcode v7.3.1 with Buzztouch Control Panel. All apps I'm downloading and running in Simulator gives same error. The apps build and run but the screens all show: Plugin not found. Weird! I tried creating new app and still same errors. I did drag Plugin folder into the Xcode projects.
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
08/31/16 09:34 AM (7 years ago)
Have you reset the simulater cleaned and restarted :)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/01/16 03:29 AM (7 years ago)
Despite certain of what we're going to find, I'd still like to take a look at the logs... That's where the clues are... The 'screen' will tell you the plugin was not found. The log will tell you everything. Cheers! -- Smug
 
Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
like
09/01/16 01:37 PM (7 years ago)
Reset simulator, cleaned and restarted. still doing the same thing. Here is the log: 2016-09-01 22:34:49.517 testappv3[713:8715] BT_device: INIT 2016-09-01 22:34:49.518 testappv3[713:8715] BT_device: Unique UUID exists: ECB169D2-7540-4584-8C08-A1F29FA17C4C 2016-09-01 22:34:49.518 testappv3[713:8715] BT_device: This device is NOT an iPad. 2016-09-01 22:34:49.519 testappv3[713:8715] BT_device: This device can make phone calls 2016-09-01 22:34:49.521 testappv3[713:8715] BT_device: This device can send emails 2016-09-01 22:34:49.521 testappv3[713:8715] BT_device: This device cannot send SMS (text) messages 2016-09-01 22:34:49.521 testappv3[713:8715] BT_device: This device can report it's location 2016-09-01 22:34:49.521 testappv3[713:8715] BT_device: This device cannot take pictures or videos 2016-09-01 22:34:49.521 testappv3[713:8715] BT_device: Listing custom fonts (UIAppFonts) listed in app's .plist... 2016-09-01 22:34:49.522 testappv3[713:8715] BT_user: INIT 2016-09-01 22:34:49.522 testappv3[713:8715] BT_user: User is not logged in 2016-09-01 22:34:49.522 testappv3[713:8715] BT_application: INIT 2016-09-01 22:34:49.532 testappv3[713:8715] BT_loadConfigDataViewController: INIT 2016-09-01 22:34:49.537 testappv3[713:8715] BT_loadConfigDataViewController: viewDidLoad (super) 2016-09-01 22:34:49.538 testappv3[713:8715] BT_loadConfigDataViewController: viewDidLoad 2016-09-01 22:34:49.538 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:49.538 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:49.539 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:49.539 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:49.539 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:49.541 testappv3[713:8715] BT_loadConfigDataViewController: viewWillAppear (super) 2016-09-01 22:34:49.541 testappv3[713:8715] BT_loadConfigDataViewController: configureNavBar (super) for screen with itemId: loadConfigDataScreen 2016-09-01 22:34:49.543 testappv3[713:8715] BT_viewUtilities: getNavBarBackgroundColorForScreen: Screen "(null)" does not use a navBarBackgroundColor 2016-09-01 22:34:49.543 testappv3[713:8715] BT_loadConfigDataViewController: configureBackground (super) for screen with itemId loadConfigDataScreen: 2016-09-01 22:34:49.543 testappv3[713:8715] BT_loadConfigDataViewController: fadeInOnEntry (super): 2016-09-01 22:34:49.543 testappv3[713:8715] BT_loadConfigDataViewController: viewWillAppear 2016-09-01 22:34:49.545 testappv3[713:8715] testappv3_appDelegate: applicationDidBecomeActive 2016-09-01 22:34:49.547 testappv3[713:8715] BT_loadConfigDataViewController: viewDidAppear 2016-09-01 22:34:49.549 testappv3[713:8715] testappv3_appDelegate: networkTypeChanged. rootDevice is connected to the network: WiFi 2016-09-01 22:34:51.048 testappv3[713:8715] BT_loadConfigDataViewController: loadAppData 2016-09-01 22:34:51.048 testappv3[713:8715] BT_loadConfigDataViewController: Will use the default JSON configuration file "BT_config.txt" if a newer version is not cached on the device. 2016-09-01 22:34:51.049 testappv3[713:8715] BT_fileManager: File does exist in cached directory: "cachedAppConfig.txt" 2016-09-01 22:34:51.049 testappv3[713:8715] BT_loadConfigDataViewController: Parsing previously cached JSON data: "cachedAppConfig.txt" 2016-09-01 22:34:51.050 testappv3[713:8715] BT_fileManager: readTextFileFromCacheWithEncoding: "cachedAppConfig.txt" encoding: -1 2016-09-01 22:34:51.051 testappv3[713:8715] BT_application: validateApplicationData 2016-09-01 22:34:51.051 testappv3[713:8715] BT_application: The application data appears to be valid. 2016-09-01 22:34:51.052 testappv3[713:8715] BT_application: parseJSONData: parsing application data 2016-09-01 22:34:51.052 testappv3[713:8715] BT_application: parsing themes, count: 1 2016-09-01 22:34:51.052 testappv3[713:8715] BT_application: parsing tabs, count: 4 2016-09-01 22:34:51.053 testappv3[713:8715] BT_application: parsing menus, count: 0 2016-09-01 22:34:51.053 testappv3[713:8715] BT_application: parsing screens, count: 5 2016-09-01 22:34:51.053 testappv3[713:8715] BT_loadConfigDataViewController: configureEnvironmentUsingAppData 2016-09-01 22:34:51.054 testappv3[713:8715] BT_contextMenu: INIT 2016-09-01 22:34:51.058 testappv3[713:8715] BT_loadConfigDataViewController: "Start Location Updates" = "No". NOT starting the location monitor. 2016-09-01 22:34:51.057 testappv3[713:8869] BT_loadConfigDataViewController: initAudioPlayer 2016-09-01 22:34:51.058 testappv3[713:8715] BT_application: buildInterface app interface 2016-09-01 22:34:51.058 testappv3[713:8715] BT_background_view: INIT 2016-09-01 22:34:51.058 testappv3[713:8870] BT_loadConfigDataViewController: loadSoundEffects 2016-09-01 22:34:51.059 testappv3[713:8715] BT_application: building a tabbed based navigation app 2016-09-01 22:34:51.059 testappv3[713:8869] BT_audioPlayer: INIT (preparing it for possible background audio) 2016-09-01 22:34:51.060 testappv3[713:8715] BT_tabBarController: view loaded 2016-09-01 22:34:51.060 testappv3[713:8870] BT_fileManager: File does exist in Xcode bundle: "bt_funk.mp3" 2016-09-01 22:34:51.066 testappv3[713:8715] BT_application: getScreenDataByItemId D601F2469FA1FCDECC1D9AA 2016-09-01 22:34:51.066 testappv3[713:8715] BT_application: screenType is BT_screen_map for screen with nickname: "Shops" and itemId: D601F2469FA1FCDECC1D9AA 2016-09-01 22:34:51.066 testappv3[713:8715] BT_application: getViewControllerForScreen nickname: "Shops" itemId: D601F2469FA1FCDECC1D9AA type: BT_screen_map 2016-09-01 22:34:51.066 testappv3[713:8715] BT_application: getViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: D601F2469FA1FCDECC1D9AA 2016-09-01 22:34:51.067 testappv3[713:8715] BT_plugin_missing: INIT 2016-09-01 22:34:51.068 testappv3[713:8870] BT_fileManager: File does exist in Xcode bundle: "bt_glass.mp3" 2016-09-01 22:34:51.069 testappv3[713:8715] BT_plugin_missing: viewDidLoad (super) 2016-09-01 22:34:51.069 testappv3[713:8715] BT_plugin_missing: viewDidLoad 2016-09-01 22:34:51.069 testappv3[713:8715] BT_navController: pushViewController 2016-09-01 22:34:51.078 testappv3[713:8715] BT_application: getScreenDataByItemId 1EE97AF464B28555F26E34F 2016-09-01 22:34:51.078 testappv3[713:8715] BT_application: screenType is BT_screen_menuListSimple for screen with nickname: "Testing1" and itemId: 1EE97AF464B28555F26E34F 2016-09-01 22:34:51.078 testappv3[713:8715] BT_application: getViewControllerForScreen nickname: "Testing1" itemId: 1EE97AF464B28555F26E34F type: BT_screen_menuListSimple 2016-09-01 22:34:51.078 testappv3[713:8715] BT_application: getViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: 1EE97AF464B28555F26E34F 2016-09-01 22:34:51.078 testappv3[713:8715] BT_plugin_missing: INIT 2016-09-01 22:34:51.079 testappv3[713:8715] BT_plugin_missing: viewDidLoad (super) 2016-09-01 22:34:51.079 testappv3[713:8715] BT_plugin_missing: viewDidLoad 2016-09-01 22:34:51.079 testappv3[713:8715] BT_navController: pushViewController 2016-09-01 22:34:51.081 testappv3[713:8715] BT_application: getScreenDataByItemId AB62F31CBE902F056D9C623 2016-09-01 22:34:51.081 testappv3[713:8715] BT_application: screenType is Rd_simplerss for screen with nickname: "News" and itemId: AB62F31CBE902F056D9C623 2016-09-01 22:34:51.081 testappv3[713:8715] BT_application: getViewControllerForScreen nickname: "News" itemId: AB62F31CBE902F056D9C623 type: Rd_simplerss 2016-09-01 22:34:51.081 testappv3[713:8715] BT_application: getViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: AB62F31CBE902F056D9C623 2016-09-01 22:34:51.082 testappv3[713:8715] BT_plugin_missing: INIT 2016-09-01 22:34:51.082 testappv3[713:8715] BT_plugin_missing: viewDidLoad (super) 2016-09-01 22:34:51.083 testappv3[713:8715] BT_plugin_missing: viewDidLoad 2016-09-01 22:34:51.083 testappv3[713:8715] BT_navController: pushViewController 2016-09-01 22:34:51.084 testappv3[713:8715] BT_application: getScreenDataByItemId DE11C56E2A4F19ED85E10C7 2016-09-01 22:34:51.084 testappv3[713:8715] BT_application: screenType is BT_screen_blank for screen with nickname: "Stores" and itemId: DE11C56E2A4F19ED85E10C7 2016-09-01 22:34:51.084 testappv3[713:8715] BT_application: getViewControllerForScreen nickname: "Stores" itemId: DE11C56E2A4F19ED85E10C7 type: BT_screen_blank 2016-09-01 22:34:51.084 testappv3[713:8715] BT_application: getViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: DE11C56E2A4F19ED85E10C7 2016-09-01 22:34:51.085 testappv3[713:8715] BT_plugin_missing: INIT 2016-09-01 22:34:51.085 testappv3[713:8715] BT_plugin_missing: viewDidLoad (super) 2016-09-01 22:34:51.086 testappv3[713:8715] BT_plugin_missing: viewDidLoad 2016-09-01 22:34:51.086 testappv3[713:8715] BT_navController: pushViewController 2016-09-01 22:34:51.091 testappv3[713:8715] BT_application: This app does not use a splash screen 2016-09-01 22:34:51.091 testappv3[713:8715] BT_loadConfigDataViewController: fadeOutLoadView 2016-09-01 22:34:51.592 testappv3[713:8715] BT_loadConfigDataViewController: fadeInStartView 2016-09-01 22:34:51.593 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.593 testappv3[713:8715] BT_loadConfigDataViewController: viewWillDisappear (super) 2016-09-01 22:34:51.593 testappv3[713:8715] BT_loadConfigDataViewController: fadeOutOnExit (super): 2016-09-01 22:34:51.597 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.598 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.599 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.599 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.599 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.601 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.604 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.605 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.605 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.607 testappv3[713:8715] BT_plugin_missing: viewWillAppear (super) 2016-09-01 22:34:51.607 testappv3[713:8715] BT_plugin_missing: configureNavBar (super) for screen with itemId: error view controller has no itemId 2016-09-01 22:34:51.611 testappv3[713:8715] BT_viewUtilities: getNavBarBackgroundColorForScreen: Screen "(null)" does not use a navBarBackgroundColor 2016-09-01 22:34:51.611 testappv3[713:8715] BT_plugin_missing: configureBackground (super) for screen with itemId error view controller has no itemId: 2016-09-01 22:34:51.611 testappv3[713:8715] BT_background_view: updateProperties (color and image) for screen with itemId: error view controller has no itemId: 2016-09-01 22:34:51.612 testappv3[713:8715] BT_fileManager: File does exist in Xcode bundle: "blank.png" 2016-09-01 22:34:51.612 testappv3[713:8715] BT_background_view: "blank.png" exists in Xcode bundle - not downloading. 2016-09-01 22:34:51.612 testappv3[713:8715] BT_background_view: setImage 2016-09-01 22:34:51.612 testappv3[713:8715] BT_plugin_missing: fadeInOnEntry (super): 2016-09-01 22:34:51.613 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.615 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.616 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.616 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.616 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.616 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.617 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow 2016-09-01 22:34:51.617 testappv3[713:8715] testappv3_appDelegate: supportedInterfaceOrientationsForWindow
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/01/16 03:45 PM (7 years ago)
When you drag your plugin directory, does the dialog pop up? Do you set the target to the app via checkbox if not checked? Cheers! -- Smug
 
Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
like
09/02/16 02:14 AM (7 years ago)
Yes smug doing all of that. Still same error. Created new project. still same.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/02/16 02:41 AM (7 years ago)
Hmmm... Well, the trouble seems consistent throughout the project log file, so if you fix one problem, it should either fix the rest, or the solution should be the same for each. So lets get started. The first sign of trouble comes with the loading of the first screen: 2016-09-01 22:34:51.060 testappv3[713:8870] BT_fileManager: File does exist in Xcode bundle: "bt_funk.mp3" 2016-09-01 22:34:51.066 testappv3[713:8715] BT_application: getScreenDataByItemId D601F2469FA1FCDECC1D9AA 2016-09-01 22:34:51.066 testappv3[713:8715] BT_application: screenType is BT_screen_map for screen with nickname: "Shops" and itemId: D601F2469FA1FCDECC1D9AA 2016-09-01 22:34:51.066 testappv3[713:8715] BT_application: getViewControllerForScreen nickname: "Shops" itemId: D601F2469FA1FCDECC1D9AA type: BT_screen_map 2016-09-01 22:34:51.066 testappv3[713:8715] BT_application: getViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: D601F2469FA1FCDECC1D9AA 2016-09-01 22:34:51.067 testappv3[713:8715] BT_plugin_missing: INIT So, it's not finding the screen called 'shops'. And it's looking for it via the itemId for that screen: D601F2469FA1FCDECC1D9AA Now, in your BT config, after "BT_items" and "BT_tabs" should be "BT_screens". That's where all of our screen data is. It might be quite lengthy depending on your setup, and JSON is always confusing to look at un-formatted, so run a copy through jsonlint.com and make it pretty, then either leave it there, or paste the results in a text editor. For better or worse, the way BT gets it's home screen (if not using tabs) is for the developer (like me and you) to determine our home screen in the "Layout" tab of our app control panel. We select the screen we want as a home screen, and BT holds that nugget of information and when it generates your screens, they're 'mostly' at random. But the system makes darn sure that the first screen is the screen you selected as 'home'. *That* should be the first screen in the 'BT_screens' section. And I 'suspect' that your 'shops' screen might be your home screen. Either that, or you haven't determined a home screen, and 'shops' is the first random screen that popped up. Regardless, we want to see if: 1) Does that ItemId exist in your BT_config.txt 2) Does the ItemId match the nickname and other info [in other words, is it the right screen?] 3) Does the plugin directory exist? Is the plugin directory empty? Do the class files contain data? "If" all of that works, then there is something else going on. The BT 'system' displays a 'cannot find plugin' error, but as you can see in Xcode, it's actually a 'little' different: ERROR, could not initialize view controller for screen with itemId:XXXXXXX A 'result' of not being able to initialize the view controller, is for the BT infrastructure to scream about not being able to find the plugin. And that is the 'most common' reason. But it isn't the 'only' reason. however, the possibilities depend on a few other factors. Snoop around with this, and if it doesn't work, stop by again and yell. We'll figure it out eventually. One more thing: Is it 'just' this project, or any self hosted project? What about a sample app from the BT control panel... any different? Cheers! -- Smug
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
09/02/16 09:14 PM (7 years ago)
Hi Tyroner. Maybe this? With the last xCode update, 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."
 
Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
like
09/10/16 09:33 PM (7 years ago)
Thanks Red Dog! That solved it for me! Smug your input helped me understand how the system works better! Regards Tyrone
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/10/16 10:47 PM (7 years ago)
Nice Catch Red Dog :) Glad you got it working, Tyroner :) Cheers! -- Smug
 

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.