Discussion Forums  >  Uncategorized

Replies: 14    Views: 905

bguthrie
Aspiring developer
Profile
Posts: 11
Reg: Jul 17, 2011
Plano, TX
110
07/21/11 11:40 AM (14 years ago)

buzztouch App iPhone Simulator Error - Since Upgrading to Mac OSX Lion

Just thought I see if anyone else was experiencing this problem. My App has ability to give driving instructions. The map app would launch prior to Lion upgrade and all was well. ;-) After upgrading however, I receive the following error when the maps app tries to launch: It appears that device location information is unavailable. This feature will not work without location information. :( I've tried both Xcode v3 and v4 and both give the same error. Any help / comments / advice would be greatly appreciated. Regards, Bruce
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/21/11 12:58 PM (14 years ago)
Hi in TX. Half way down the list on the questions ;-) http://www.buzztouch.com/forum/thread.php?tid=D1C69B116EA539C46A83860
 
bguthrie
Aspiring developer
Profile
Posts: 11
Reg: Jul 17, 2011
Plano, TX
110
like
07/21/11 01:18 PM (14 years ago)
Thanks David for the link. Just an update for you though... I had installed the latest XCode from the App Store (v4.1) and it states in the description XCode 4.1 Runs on OSX Lion. I was indeed able to compile clean, but received my issue while testing in the Simulator, so I don't know if the issue is XCode, IOS, Simulator or something else at this point.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/21/11 02:05 PM (14 years ago)
We'll get through this somehow. Because Apple released Lion publicly yesterday issues like your have moved to the top of our list. We're configuring a Lion machine to see what may be causing the trouble. A solution can't be too tough but may take us a few days?
 
bguthrie
Aspiring developer
Profile
Posts: 11
Reg: Jul 17, 2011
Plano, TX
110
like
07/21/11 02:13 PM (14 years ago)
Thanks David. You guys are The Best. I'm fine because I kept a Snow Leopard Machine around for things like this, but I figured it was something you'd like to know about. I'll look forward to testing once you're ready to go. Thanks again for everything!
 
bguthrie
Aspiring developer
Profile
Posts: 11
Reg: Jul 17, 2011
Plano, TX
110
like
08/07/11 09:53 AM (14 years ago)
Just an update... This is still an ongoing problem for me and to test I created a new buzztouch 1.5 app that had nothing but a Map in it which provided for getting driving instructions. I wanted to see if a brand new app containing nothing but a map experienced the same error and it did. The app appeared to compile error free. I'm running on Lion and Xcode 4.1.1. Any suggestions would be appreciated. Thank you, Bruce
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/08/11 04:16 AM (14 years ago)
Hi Bruce: Hmm... So good idea about making a simple app for testing. If it compiled OK and doesn't run, does the Output console show any details? When the apps running on the simulator, open the Console. Every tap / transition / load etc should show some details about what' happening with the project, maybe some clues are there.
 
bguthrie
Aspiring developer
Profile
Posts: 11
Reg: Jul 17, 2011
Plano, TX
110
like
08/08/11 05:50 AM (14 years ago)
Hi David, Thank you for your reply. I'll dig in deeper to see what else might be going on. As a further test, I installed Xcode on another Mac running Lion, trying to determine if this problem was specific to the machine I was working on. What I've found is that the results were exactly the same. The Map App issues the error when attempting to get driving instructions. I'll update as I know more. Thank you, Bruce
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/08/11 08:09 AM (14 years ago)
Good info... maybe post the Error you're seeing with the Map? If it's not a comiler error but instead shows something when the app is running it should be easy to find? You may like this too, not sure if you saw it? http://www.buzztouch.com/forum/thread.php?tid=8D8FE1A61B9227598CAEDF8
 
bguthrie
Aspiring developer
Profile
Posts: 11
Reg: Jul 17, 2011
Plano, TX
110
like
08/08/11 11:49 AM (14 years ago)
Hi David, Thought you might find these interesting... Here are links to screenshots of the App that only contains a Map with Driving Instructions enabled. In addition, I've included a link to the console screenshot as well. I'm continuing to troubleshoot and will let you know if I find anything else out. http://dl.dropbox.com/u/277098/BuzzTouch/Map/Simulator%20Map1.png http://dl.dropbox.com/u/277098/BuzzTouch/Map/Simulator%20Map2.png http://dl.dropbox.com/u/277098/BuzzTouch/Map/Simulator%20Map3.png http://dl.dropbox.com/u/277098/BuzzTouch/Map/Console.jpeg Note: GPS is turned ON in BuzzTouch App Core Properties. Thank you for your thoughts / assistance; I really appreciate them! Bruce
 
bguthrie
Aspiring developer
Profile
Posts: 11
Reg: Jul 17, 2011
Plano, TX
110
like
08/08/11 02:33 PM (14 years ago)
Hi David, Here's the code where the Alert is thrown in BT_screen_map.m. It looks as if fromLon and fromLat don't contain data? http://dl.dropbox.com/u/277098/BuzzTouch/Map/Alert%20in%20Workspace%20Code.png Hopefully getting a little closer... ;-) Thank you, Bruce
 
bguthrie
Aspiring developer
Profile
Posts: 11
Reg: Jul 17, 2011
Plano, TX
110
like
08/08/11 03:14 PM (14 years ago)
Hi David, Sorry to keep adding to this thread, but I'm trying to document my complete findings as I uncover a little more information. It looks like the Device Location setting in Location Manger Logic is not getting initialized properly (BT_application.m)? I've enabled GPS Tracking in my App, so I don't know whether there's more I need to do than that to cause Location initialization to occur? The following are screenshots of Device Initialization. http://dl.dropbox.com/u/277098/BuzzTouch/Map/Device%20Location%20Init.png http://dl.dropbox.com/u/277098/BuzzTouch/Map/Loation%20Manager%20Logic.png I hope this is helping to narrow down things... Thank you. Bruce
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/09/11 01:19 AM (14 years ago)
Got it. good info from the console. Three things have to be TRUE before GPS will turn-on when the app starts. a) The Device has a GPS (funny, some don't) b) The control panel, and matching config data in the app (either from the BT_config.txt file in Xcode or a downloaded version if you app uses a dataURL) must have GPS allowed. c) If your app uses a settings panel and a user previously turned off Allow GPS setting, this may be preventing the GPS from starting. Other than that, should work. The flag rootApp.rootDevice.canReportLocation is set when the device is initialized. This happens when the app first launches. If you can't get the GPS to turn on, have a look at BT_Objects > BT_device.m and see if you can sort through the logic in that file. You'll see where it sets canRepotLocation to TRUE or FALSE
 
bguthrie
Aspiring developer
Profile
Posts: 11
Reg: Jul 17, 2011
Plano, TX
110
like
08/09/11 05:57 AM (14 years ago)
Thanks David, This really helps. I'll let you know how things go... ;-) Bruce
 
bguthrie
Aspiring developer
Profile
Posts: 11
Reg: Jul 17, 2011
Plano, TX
110
like
08/09/11 02:40 PM (14 years ago)
Hello David, After trying several things today, I was unable to get Location Services to initialize in the Xcode iPhone Simulator. I even added the Location Service switch in App and set it On, but no changes. I think there might be an issue with code compatibility and Xcode 4.1.1 / Lion. The following is a screenshot of the code that seems to be failing? http://dl.dropbox.com/u/277098/BuzzTouch/Map/Device%20Location%20Code.png To the community at large - has anyone been able to test a map with driving directions in the iPhone Simulator using Xcode 4.1.1 / Lion? Thank you. Bruce
 

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.