Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 19    Views: 131

Flloyd
Aspiring developer
Profile
Posts: 43
Reg: Aug 24, 2012
Brisbane
5,780
11/13/12 12:33 AM (13 years ago)

MKreverse geocoder, error in xCode

I have 10 instances of this error showing up in xCode, as yellow warnings. Precisely: 'MKReverseGeocoder' is deprecated first deprecated in iOS 5.0 It seems to have something to do the the Plugin BT_ screen.map. This is what appears in the .map.h file: //geocoder delegate methods -(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error; -(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark; and this in the map.h file: //fire geocoder MKReverseGeocoder *geoCoder = [[MKReverseGeocoder alloc] initWithCoordinate:self.mapView.userLocation.coordinate]; geoCoder.delegate = self; [geoCoder start]; //let map place default blue pin return nil; I have not set up any geo locators in Buzztouch, no maps, no location. According to Apple Developer, this error has something to do with apps using Google Maps, which is no longer supported. Any suggestions how I get rid of the errors? Is it ok just to delete these sections? Or should I delete the Plugin BT_screen.map?
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
11/13/12 01:51 AM (13 years ago)
You should be fine to just delete the plugin. But if you do add a Geo screen, then note that it'll show a black screen.
 
Flloyd
Aspiring developer
Profile
Posts: 43
Reg: Aug 24, 2012
Brisbane
5,780
like
11/13/12 02:49 AM (13 years ago)
Thanks so much. I've removed the plugin, refreshed xCode, no more errors! Cheers Flloyd
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/14/12 02:36 AM (13 years ago)
"I have 10 instances of this error showing up in xCode, as yellow warnings." We don't see any errors when compiling projects with this plugin. What iOS version are you targeting? What version of Xcode are you using? For sure Apple is moving away from Google Maps but warnings and errors are something we're always tracking down and isolating / fixing. Thnx in advance.
 
Flloyd
Aspiring developer
Profile
Posts: 43
Reg: Aug 24, 2012
Brisbane
5,780
like
11/14/12 06:11 AM (13 years ago)
HI David, I'm using xCode Version 4.5.2, and targeting iOS version 5.1 Cheers Flloyd
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/14/12 09:09 AM (13 years ago)
Cool... got it. If you target ios3.0 it will work on far more devices... and you won't see this warning -:) Thx for the heads up.
 
Flloyd
Aspiring developer
Profile
Posts: 43
Reg: Aug 24, 2012
Brisbane
5,780
like
11/14/12 03:04 PM (13 years ago)
thanks so much for the advice, David. I just looked in xCode, it only allows as far back as 4.3, so I'll go there for the moment.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/14/12 05:07 PM (13 years ago)
--Click your project name on the left in Xcode --Single click your "target" to bring up the summary window. --Make sure Summary tab is selected along top (not info, build settings, build phases, etc) --TYPE 3.0 in the Deployment Target box. You can enter anything you want in this box, regardless of what the drop down makes available. Next, to confirm you entry...use the Build Settings tab and scroll down to the iOS Deployment Section. Your entry should remain :-)
 
Flloyd
Aspiring developer
Profile
Posts: 43
Reg: Aug 24, 2012
Brisbane
5,780
like
11/14/12 05:16 PM (13 years ago)
Just did that, then ran simulator. 3 Dependency errors now showing: warning: iOS deployment targets lower than 4.3 are not supported (current IPHONEOS_DEPLOYMENT_TARGET = "3", ARCHS = "armv7"). (null): The CodeResources file is missing and it must be a symbolic link to _CodeSignature/CodeResources. Make certain that the bundle is on a locally-mounted volume (not a remote SMB volume), and be certain to use the Mac OS X Finder to compress it (-19062) (null): iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6 (-19033) What do you think?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/14/12 05:27 PM (13 years ago)
Yikes....LOL. Your project download should have had all this stuff already set too, make it even stranger. In build settings tab, in the Valid Architectures setting. It should show two values. armv6 armv7s This is because different devices have different processors. And, when you say "hey iOS, when you compile this software, make sure it will run on both of these architectures." So, iOS 3.0 Deployment Target Both architectures. Clean > Build. See what happens.
 
Flloyd
Aspiring developer
Profile
Posts: 43
Reg: Aug 24, 2012
Brisbane
5,780
like
11/14/12 05:34 PM (13 years ago)
armv6 is missing. Only two errors now, though! Here is one (null): iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6 (-19033) full validation log entry: Validate /Users/flloyd2010/Library/Developer/Xcode/DerivedData/beingingoodvoicesunday-dzjkmjaogcgizkdacglsrglvfbsl/Build/Products/Debug-iphoneos/beingingoodvoicesunday.app cd /Users/flloyd2010/beingingoodvoice/abeingingoodvoicesunday_v20_iOS setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" setenv PRODUCT_TYPE com.apple.product-type.application /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/flloyd2010/Library/Developer/Xcode/DerivedData/beingingoodvoicesunday-dzjkmjaogcgizkdacglsrglvfbsl/Build/Products/Debug-iphoneos/beingingoodvoicesunday.app Unable to validate your application. - (null)
 
SheriDee
Code is Art
Profile
Posts: 1094
Reg: Sep 23, 2011
location unknow...
22,840
like
11/15/12 09:49 AM (13 years ago)
@ Flloyd Not sure if this will work but just went through this hell too......this is what I did and it fixed it and now is waiting in the itunes to be reviewed.....hope you figure it out http://cl.ly/image/0Y1J1M3S2P2f
 
Flloyd
Aspiring developer
Profile
Posts: 43
Reg: Aug 24, 2012
Brisbane
5,780
like
11/15/12 03:58 PM (13 years ago)
Hi Sheri, thanks for that. I agree, nice simple solution! You can't have everything, and I'm also happy to settle for 4.3 customers and up for now. Nice way of sharing too, very cool. Good luck with iTunes! Cheers Flloyd
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
11/15/12 11:24 PM (13 years ago)
 
Flloyd
Aspiring developer
Profile
Posts: 43
Reg: Aug 24, 2012
Brisbane
5,780
like
11/15/12 11:34 PM (13 years ago)
Thanks Susan, I checked out that string, realised there would be a whole load of xCode adjustments to make and decided to leave it for the moment. If it becomes apparent that I need to have that facility when I'm closer to submitting, I'll deal with it then. Thanks so much for the link, lots of suggestions there. Cheers Flloyd
 
John Smiths
Veteran developer
Profile
Posts: 17
Reg: Oct 12, 2010
Monterey, CA
2,670
like
11/16/12 02:13 PM (13 years ago)
Good discussion here but none of this explain who MY machine shows no errors and compiles with iOS 3.0 target (the way the download is setup). Could it be related to how "old" the "oldest" SDK on my machine is? I'll bet it is. In fact...that makes perfect sense now that I'm thinking about it. If you dont' have the 3.0 SDK on your machine it won't be capable of compiling for that older architecture. Duh. It's easy for me to assume everyone has the same Xcode setup but we are reminded time and time again that things are slightly different on each machine. This means we should probably update the download so it doesn't reference the iOS 3.0 target (older devices) anymore. I say this because new folks that are just getting started couldn't possibly have this older 3.0 SDK on their machine...they just downloaded Xcode and the latest download doesn't come with it. I'll look into it. In the meantime, @Flloyd will for sure have to settle for the newer 4.3 target without going through a bunch of tweaks.
 
John Smiths
Veteran developer
Profile
Posts: 17
Reg: Oct 12, 2010
Monterey, CA
2,670
like
11/16/12 02:14 PM (13 years ago)
Gotta love that I'm logged in as Bigfoot - my test account. Hee hee. Bigfoot lives in Maine in spirit only, Monterey in reality :-) David.
 
Flloyd
Aspiring developer
Profile
Posts: 43
Reg: Aug 24, 2012
Brisbane
5,780
like
11/16/12 04:06 PM (13 years ago)
Thanks for clarifying that, @Bigfoot, otherwise David @Buzztouch, otherwise henceforth to be known as Big Heart to go with the Big Mountains! Cheers Flloyd
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
02/18/13 03:15 PM (12 years ago)
is there a ready code to replace the problem one?
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
02/26/13 06:16 AM (12 years ago)
???
 

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.