[英]Compiling reverse geocoding in iOS 5
I'm writing a program for iOS 5. The program should perform reverse geocoding. 我正在为iOS 5编写程序。该程序应执行反向地理编码。
When trying to compile I get the warning 尝试编译时收到警告
MKReverseGeocoder is deprecated 不推荐使用MKReverseGeocoder
and an error 和一个错误
Undefined symbols for architecture i386: "_OBJC_CLASS_$_CLLocationManager", referenced from: objc-class-ref in UserLocationAddressViewController.o" 体系结构i386的未定义符号:“ _ OBJC_CLASS _ $ _ CLLocationManager”,引用自:UserLocationAddressViewController.o中的objc-class-ref”
I have 2 questions: 我有两个问题:
You need to make sure your deployment target is set to the lowest iOS version you want to support. 您需要确保将部署目标设置为要支持的最低iOS版本。 In the example below, the app is built for 5.0 (base SDK), but will run on iOS 4.0 (deployment target): 在以下示例中,该应用程序是针对5.0(基本SDK)构建的,但将在iOS 4.0(部署目标)上运行:
Setting this to any value below 5.0 will remove the deprecation warning. 将此值设置为低于5.0的任何值将删除弃用警告。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.