Discussion Forums  >  Uncategorized

Replies: 17    Views: 199

teqbean
Code is Art
Profile
Posts: 119
Reg: Jan 01, 2012
Atlanta, GA
3,340
01/28/12 12:47 AM (14 years ago)

BT Server (2.1.6) iOS App Error and / or issue

All Apps I create on my install have this behavior though I can find nothing wrong with the install. The site seems to function properly. No errors. I do find a few glitches in the console which I will sample below: Confidential info replaced. 2012-01-28 02:21:26.089 ***********app[3**9:**7] BT_application: initializing buzztouch application 2012-01-28 02:21:26.097 ***********app[3**9:**7] BT_device: INIT 2012-01-28 02:21:26.102 ***********app[3**9:**7] BT_device: Unique UUID exists. 2012-01-28 02:21:26.106 ***********app[3**9:**7] BT_device: This device is NOT an iPad. 2012-01-28 02:21:26.109 ***********app[3**9:**7] BT_device: This device can make phone calls 2012-01-28 02:21:26.233 ***********app[3**9:**7] BT_device: This device can send emails 2012-01-28 02:21:26.238 ***********app[3**9:**7] BT_device: This device can send SMS 2012-01-28 02:21:26.247 ***********app[3**9:**7] BT_device: This device can reports it's location 2012-01-28 02:21:26.255 ***********app[3**9:**7] BT_device: This device can take still pictures 2012-01-28 02:21:26.259 ***********app[3**9:**7] BT_device: This device can take videos 2012-01-28 02:21:26.262 ***********app[3**9:**7] BT_user: INIT 2012-01-28 02:21:26.266 ***********app[3**9:**7] BT_networkState: INIT 2012-01-28 02:21:26.275 ***********app[3**9:**7] BT_networkState: Monitoring Connection: WiFi Not Available 2012-01-28 02:21:26.282 ***********app[3**9:**7] BT_networkState: Monitoring Connection: WiFi Available 2012-01-28 02:21:26.293 ***********app[3**9:**7] BT_networkState: Monitoring Connection: WiFi Available 2012-01-28 02:21:26.303 ***********app[3**9:***7] ***********app_appDelegate: initAudioPlayer in background thread 2012-01-28 02:21:26.305 ***********app[3**9:***7] BT_audioPlayer: INIT (preparing it for possible background audio) 2012-01-28 02:21:26.334 ***********app[3**9:***3] ***********app_appDelegate: loadSoundEffects SOUNDS NOT LOADING. SEE appDelegete.m, line 846 2012-01-28 02:21:26.476 ***********app[3**9:**7] ***********app_appDelegate: refreshAppData 2012-01-28 02:21:26.485 ***********app[3**9:**7] BT_fileManager: File does not exist in cached directory: cachedAppConfig.txt 2012-01-28 02:21:26.490 ***********app[3**9:**7] BT_fileManager: File does exist in Xcode bundle: BT_config.txt 2012-01-28 02:21:26.495 ***********app[3**9:**7] BT_fileManager: readTextFileFromBundleWithEncoding: BT_config.txt encoding: -1 2012-01-28 02:21:26.502 ***********app[3**9:**7] ***********app_appDelegate: Parsing configuration data included in the project bundle. 2012-01-28 02:21:26.512 ***********app[3**9:**7] BT_application: validateApplicationData 2012-01-28 02:21:26.522 ***********app[3**9:**7] BT_application: The application data appears to be valid. 2012-01-28 02:21:26.526 ***********app[3**9:**7] ***********app_appDelegate: configureEnvironmentUsingAppData 2012-01-28 02:21:26.530 ***********app[3**9:**7] BT_audioPlayer: stopAudio 2012-01-28 02:21:26.536 ***********app[3**9:**7] BT_application: parseJSONData: parsing application data 2012-01-28 02:21:26.549 ***********app[3**9:**7] BT_application: parsing themes, count: 1 2012-01-28 02:21:26.554 ***********app[3**9:**7] BT_application: parsing tabs, count: 3 2012-01-28 02:21:26.558 ***********app[3**9:**7] BT_application: parsing screens, count: 4 2012-01-28 02:21:26.562 ***********app[3**9:**7] BT_application: buildInterface app interface 2012-01-28 02:21:26.566 ***********app[3**9:**7] BT_application: building a tabbed based navigation app 2012-01-28 02:21:26.575 ***********app[3**9:**7] BT_rotatingTabBarController: tabBarController view loaded 2012-01-28 02:21:26.581 ***********app[3**9:**7] BT_application: getScreenDataByItemId E9*******************76 2012-01-28 02:21:26.585 ***********app[3**9:**7] BT_application: screenType is BT_screen_menuButtons for screen with nickname: Home and itemId: E9*******************76 2012-01-28 02:21:26.588 ***********app[3**9:**7] BT_viewControllerManager: initViewControllerForScreen nickname: Home itemId: E9*******************76 type: BT_screen_menuButtons 2012-01-28 02:21:26.592 ***********app[3**9:**7] BT_viewControllerManager: initViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: E9*******************76 2012-01-28 02:21:26.595 ***********app[3**9:**7] BT_viewControllerManager: getErrorViewController 2012-01-28 02:21:26.599 ***********app[3**9:**7] BT_viewController: INIT 2012-01-28 02:21:26.604 ***********app[3**9:**7] BT_rotatingNavController: pushViewController for screen: E9*******************76 2012-01-28 02:21:26.615 ***********app[3**9:**7] BT_application: getScreenDataByItemId 22*******************CA 2012-01-28 02:21:26.619 ***********app[3**9:**7] BT_application: screenType is BT_screen_rssReader for screen with nickname: News and itemId: 22*******************CA 2012-01-28 02:21:26.623 ***********app[3**9:**7] BT_viewControllerManager: initViewControllerForScreen nickname: News itemId: 22*******************CA type: BT_screen_rssReader 2012-01-28 02:21:26.626 ***********app[3**9:**7] BT_viewControllerManager: initViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: 22*******************CA 2012-01-28 02:21:26.630 ***********app[3**9:**7] BT_viewControllerManager: getErrorViewController 2012-01-28 02:21:26.633 ***********app[3**9:**7] BT_viewController: INIT 2012-01-28 02:21:26.638 ***********app[3**9:**7] BT_rotatingNavController: pushViewController for screen: E9*******************76 2012-01-28 02:21:26.645 ***********app[3**9:**7] BT_application: getScreenDataByItemId CF*******************8F 2012-01-28 02:21:26.648 ***********app[3**9:**7] BT_application: screenType is BT_screen_customURL for screen with nickname: Live Sets and itemId: CF*******************8F 2012-01-28 02:21:26.652 ***********app[3**9:**7] BT_viewControllerManager: initViewControllerForScreen nickname: Live Sets itemId: CF*******************8F type: BT_screen_customURL 2012-01-28 02:21:26.655 ***********app[3**9:**7] BT_viewControllerManager: initViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: CF*******************8F 2012-01-28 02:21:26.659 ***********app[3**9:**7] BT_viewControllerManager: getErrorViewController 2012-01-28 02:21:26.662 ***********app[3**9:**7] BT_viewController: INIT 2012-01-28 02:21:26.667 ***********app[3**9:**7] BT_rotatingNavController: pushViewController for screen: E9*******************76 2012-01-28 02:21:26.697 ***********app[3**9:**7] BT_application: initialzing a splash screen with itemId: 18*******************CA 2012-01-28 02:21:26.700 ***********app[3**9:**7] BT_application: getScreenDataByItemId 18*******************CA 2012-01-28 02:21:26.704 ***********app[3**9:**7] BT_application: screenType is BT_screen_splash for screen with nickname: Splash Screen and itemId: 18*******************CA 2012-01-28 02:21:26.707 ***********app[3**9:**7] BT_viewControllerManager: initViewControllerForScreen nickname: Splash Screen itemId: 18*******************CA type: BT_screen_splash 2012-01-28 02:21:26.711 ***********app[3**9:**7] BT_viewControllerManager: initViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: 18*******************CA 2012-01-28 02:21:26.714 ***********app[3**9:**7] BT_viewControllerManager: getErrorViewController 2012-01-28 02:21:26.717 ***********app[3**9:**7] BT_viewController: INIT 2012-01-28 02:21:26.722 ***********app[3**9:**7] BT_application: App has Start Location Updates set to No. App is NOT starting the location monitor. 2012-01-28 02:21:26.727 ***********app[3**9:**7] BT_background_view: INIT 2012-01-28 02:21:26.738 ***********app[3**9:**7] ***********app_appDelegate: hideProgress 2012-01-28 02:21:26.742 ***********app[3**9:**7] ***********app_appDelegate: applicationDidBecomeActive 2012-01-28 02:21:26.745 ***********app[3**9:**7] ***********app_appDelegate: reportToCloud 2012-01-28 02:21:26.749 ***********app[3**9:**7] BT_strings: mergeBTVariablesInString (after merge): http://www.MyURL.com&MyData=iPhone&userId= 2012-01-28 02:21:26.753 ***********app[3**9:**7] ***********app_appDelegate: reporting to cloud at : www.MyURL.com&MyData[blank] 2012-01-28 02:21:26.833 ***********app[3**9:**7] BT_networkState: Monitoring Connection: WiFi Not Available 2012-01-28 02:21:27.042 ***********app[3**9:**7] ***********app_appDelegate: reportToCloud 2012-01-28 02:21:27.047 ***********app[3**9:**7] BT_strings: mergeBTVariablesInString (after merge): http://www.MyURL.com&MyData=iPhone&userId= 2012-01-28 02:21:27.053 ***********app[3**9:**7] ***********app_appDelegate: reporting to cloud at : www.MyURL.com&MyData[blank] 2012-01-28 02:21:27.180 ***********app[3**9:**7] ***********app_appDelegate: lastModified (value on server): Sat, 28 Jan 2012 02:25:47 -0800 2012-01-28 02:21:27.184 ***********app[3**9:**7] BT_fileManager: File does exist in cached directory: appModified.txt 2012-01-28 02:21:27.189 ***********app[3**9:**7] BT_fileManager: readTextFileFromCacheWithEncoding: appModified.txt encoding: -1 2012-01-28 02:21:27.195 ***********app[3**9:**7] ***********app_appDelegate: previousModified (value on device): Sat, 28 Jan 2012 02:25:47 -0800 2012-01-28 02:21:27.201 ***********app[3**9:**7] BT_fileManager: saveTextFileToCacheWithEncoding: appModified.txt encodingFlag: -1 2012-01-28 02:21:27.461 ***********app[3**9:**7] ***********app_appDelegate: lastModified (value on server): Sat, 28 Jan 2012 02:25:47 -0800 2012-01-28 02:21:27.465 ***********app[3**9:**7] BT_fileManager: File does exist in cached directory: appModified.txt 2012-01-28 02:21:27.469 ***********app[3**9:**7] BT_fileManager: readTextFileFromCacheWithEncoding: appModified.txt encoding: -1 2012-01-28 02:21:27.476 ***********app[3**9:**7] ***********app_appDelegate: previousModified (value on device): Sat, 28 Jan 2012 02:25:47 -0800 2012-01-28 02:21:27.481 ***********app[3**9:**7] BT_fileManager: saveTextFileToCacheWithEncoding: appModified.txt encodingFlag: -1 initViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: seems like it could be the deal breaker but i dont know what is causing it and can't find anything on the boards with this error. Also, I never get the refresh Icon in the upper left on the app. Thanks for looking. ps. I love BuzzTouch!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/28/12 01:20 AM (14 years ago)
Hi in Florida. You guys are famous with all the GOP arguing going on! LOL. This console output sometimes helps in these situations, sometimes not. It's sometimes best to also know / see what the config.txt file in the project reads. Anyway, a few things.. a) Assuming http://www.MyURL.com&MyData=iPhone&userId= loads the config data from your server (it looks like it does but be sure to paste the actual URL in your address bar to see the data. Human eyes seeing this data is important. Generally speaking, the data you see in your browser (using the url) should looks exactly like the data you see in the config.txt file in the project. If you make a change in your control panel, the data will be different in your browser but not in Xcode. The Xcode config.txt will NOT change, only the data the phone gets from the URL. Hope this makes sense. b) Assuming a) is working good...I'm seeing a load screen with type: BT_screen_rssReader This is interesting because the BT server package does not have plugin with a type: BT_screen_rssReader. This means that unless you made a new plugin or got one from somebody else, that has this itemType it won't be found in the project. The idea is that the itemType represents the name of the Objective C Class file to load. In this case, your project would need to have a plugin named: BT_screen_rssReader.m (and the .h file to go along with the .m file). Generally speaking, itemType = an Objective C class file name for the screen you're loading. When you see ERROR, could not initialize view controller for screen with itemId it's iOS telling you that it can't find the class file (plugin's .m file) for that type of screen.
 
teqbean
Code is Art
Profile
Posts: 119
Reg: Jan 01, 2012
Atlanta, GA
3,340
like
01/28/12 02:01 AM (14 years ago)
THanks so much, thats got me looking in the right direction I hope. When I am downloading my iOS Source package it doesnt seem to have any of the plugin sources. I am guessing that means something is not working properly?
 
teqbean
Code is Art
Profile
Posts: 119
Reg: Jan 01, 2012
Atlanta, GA
3,340
like
01/28/12 02:14 AM (14 years ago)
I have manually added all of the Plugin folders but im getting an error on BT_Photo.m of BT_AppDelegate.h File Not Found. Does that need to be changed to reference myAppName_AppDelegate.h?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/28/12 02:14 AM (14 years ago)
Sounds like it. a) Have a look at your plugins directory on your web-server. Use an FTP program. This is BT-server/files/plugins. When you upload a plugin in the admin panel it it gets saved in that folder. You'll see a folder for each plugin you add to your panel. b) When you download the source for your project, from your panel, it will include a folder of plugins in the .zip archive. BT-Plugins will have a modified version of each plugin in your panel. Modified, as in modified to work with the app project you are downloading. The plugins in the BT-Plugins folder in the download are what you drag into Xcode after downloading the project from your panel. See the PDF included, it explains how to do this. It may even show a picture? Don't remember. Funny. back to the RSS Reader thing..I'm thinking your somehow confusing v1.5 apps you create on buzztouch.com with apps you create on your self-hosted panel, they are not the same thing and you cannot use an apps project you created at buzztouch.com in your self-hosted control panel without major hacking ;-)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/28/12 02:19 AM (14 years ago)
If you're manually adding Objective C code to your project after you download it, for sure you'll see some issues. The first place to start if you're doing this is to replace ALL OCCURRENCES of buzzTouch_AppDelegate.h with yourAppDelegateName_appDelegate This gets done for you automatically when you download the project. But, if you add class files from something else, like a v1.5 project, you'll need to do some manual hacking to get the compiler to work without errors.
 
teqbean
Code is Art
Profile
Posts: 119
Reg: Jan 01, 2012
Atlanta, GA
3,340
like
01/28/12 02:20 AM (14 years ago)
Ok so i have confirmed that I was correct about the AppDelegate. Any thoughts as to what I should look at as to why my iOS export does not contain all of the plugins and/or the code changes that should be occuring in the code?
 
teqbean
Code is Art
Profile
Posts: 119
Reg: Jan 01, 2012
Atlanta, GA
3,340
like
01/28/12 02:24 AM (14 years ago)
No v1.5 Apps in the mix here. I am trying to make new apps on my server. I think something is not connecting on the server as my iOS download zip doesnt even have a BT_Plugins folder at all.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/28/12 02:34 AM (14 years ago)
OK, no v1.5, cool. Hmm, not sure why your download wouldn't contain any of the plugins you installed. When you run the export function, the process creates a package by loading up all the plugins on your server, re-factoring them as needed for the project you are downloading (refactoring means adjusting them to work with an individual project), packages them up in a .zip then shows you the link to the zip. This zip to download will always be saved in the /files/temp folder. You'll notice this when you use the download link, it points to the new package that was created then saved to the /files/temp folder. I'm not sure where to go here, haven't heard this before. If your control panel seems to work well, and all the plugins have configuration screens when your building apps, then it's surely related to the package process. Another interesting thing is how the BT_Plugins folder doesn't even exist. Could it be that the /files folder (and all the sub-folders, including all the plugins folders) are not writeable by PHP? All the sub-folders in the /files folder need to be readable and writeable by PHP for this to work. I'm also assuming your API key in the Admin > Settings panel validates OK. Try the validate link. This shouldn't be related but could be worth checking. a) 'Package project for download': This sends your API key to our backend and our backend delivers a project (no plugins yet) b) 'Download Source code': This opens the .zip that was delivered and saved on your machine. It opens the .zip, adds the plugins you've installed, re-factors everything then shows you the link to get it.
 
teqbean
Code is Art
Profile
Posts: 119
Reg: Jan 01, 2012
Atlanta, GA
3,340
like
01/28/12 02:47 AM (14 years ago)
Ok, I think it was definitely related to the BTM Plugins because once I removed them everything seems ok. I checked permissions and threw a quick php out to write a txt file so that isn't the issue. I also Verified my API key, etc. I am sure it is one of the BTM mods. So will work on figuring out which one.
 
teqbean
Code is Art
Profile
Posts: 119
Reg: Jan 01, 2012
Atlanta, GA
3,340
like
01/28/12 02:47 AM (14 years ago)
Thank you so much in helping me find the problem.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/28/12 02:57 AM (14 years ago)
BTM? Oh, yeah, this must be related to a plugin you added, probably the RSS, that I didn't write. Makes sense. Guys over there seemed to be working hard to learn how Objective C worked..haven't seen their names recently, maybe they gave up? Glad you got it figured out. We'll get more plugins created, and get some GREAT lessons available when we get the new site going. Been our focus for a very long time and for sure all I've been doing for a few weeks. In the meantime, because you seem capable (and patient!) you could try getting the v1.5 RSS Reader working in your project. It's not nearly as bad as you may think. a) Create a test v1.5 project with one menu and one screen - an RSS reader screen. Download this project from bt.com so you can see the config.txt file and the BT_screen_rssreader.m, .h files. b) Have a look at the config.txt file that comes with it. You'll see the JSON representation of the screen data for the rss reader. c) Do like we discussed a few posts ago and re-name the app delegate info in the BT_screen_rssReader.m, .h files that are included in the v1.5 project and get them added in your new self-hosted app. d) Manually modify the JSON data in the new app so it has the JSON for the RSS reader. If this is too complicated, I totally understand. The idea is that eventually we'll be able to get this broken down into smaller chunks so it's easier to learn the process ;-)
 
teqbean
Code is Art
Profile
Posts: 119
Reg: Jan 01, 2012
Atlanta, GA
3,340
like
01/28/12 02:58 AM (14 years ago)
As a note, the BT_Button_View.m from the BT_screen_menuButtons plugin references avatarabridged_appDelegate.h which is not any app name I have worked on. I had to correct that to my app name for my project to run. If I delete all of the plugins from the server does that clean them out? I can the re-install all of the plugins clean?
 
teqbean
Code is Art
Profile
Posts: 119
Reg: Jan 01, 2012
Atlanta, GA
3,340
like
01/28/12 03:02 AM (14 years ago)
Sounds straight forward enough, I'll see what I can do. I'll ask another question so we are going there. Is there a way to write into the myAppName_AppDelegate. I would like to make a plugin that simply integrates a couple of Obj-C components. Of course this is well after I get my server working properly.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/28/12 03:08 AM (14 years ago)
Have no idea what this is: avatarabridged Maybe also something the BTM gang left behind or modified and didn't understand? Kinda funny. The BT_Button_View.m file (named BT_button_view.m, .h in the plugin I made) is included in the plugin folder. I'll be the button plugin you have is somehow different. Maybe just re-upload the button plugin I created? avatarabridged, really, seems ILLEGAL to me. Sigh...you would think that folks that STEAL content, like bit torrent movies, would be keen enough to use a different darned name!!! So frustrating to think that an entire population of internet users are pirating content and putting millions of others at risk. And to make matters worse, lots of them are the loudest opponents of SOPA. Done ranting...gotta be done for the night...stick with it, you'll get it.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/29/12 03:27 PM (14 years ago)
Hi all, @David, sorry I'm not here as often as I'd like but working on multiple contracts (webdesign etc) to earn my money. Was reading today and saw this thread. Just to let you know that I didn't give up BT. The avatarabridged isn't something I've done . So don't know where that came from. Hope to get back soon to help out where ever I can. btw cant't wait for the new plugins and lessons you're talking about.... @ teqbean I've seen that a lot of people use our plugins with no problem(s). If I can help please just leave a note at buzztouchmods (or send me a private message Best Regards, Danny
 
teqbean
Code is Art
Profile
Posts: 119
Reg: Jan 01, 2012
Atlanta, GA
3,340
like
01/29/12 04:38 PM (14 years ago)
Thanks for all the help. I am up and running all smooth now. Questions left: Is there a way to write into the myAppName_AppDelegate from a plugin? I would like to make a plugin that simply integrates a couple of Obj-C components that need to be imported into the appDelegate. Regards, Teqbean
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/29/12 04:47 PM (14 years ago)
Hi Teqbean, From what I know that's not possible. I tried to recreate the facebook plugin and tried to add the FBconnect and MOFBHelper to automagically install into the BT_Core directory, but that didn't work (they where in the project because I couldn't add them manually anymore) so I/you have/had to manually add these directories to my/your project. If there is a solution for this I'll be glad to hear it. Best Regards, Danny
 

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.