[英]Undefined symbols for architecture i386 error when building for simulator
Undefined symbols for architecture i386:
“_OBJC_CLASS _ $ _ CLLocationManager”,引自:RootViewController.o中的objc-class-ref“_kCLLocationAccuracyNearestTenMeters”,引自: - RootViewController.o中的[RootViewController locationManager] ld:未找到架构i386的符号collect2:ld返回1退出状态
You must link your binary to CoreLocation.framework. 您必须将二进制文件链接到CoreLocation.framework。 That's all. 就这样。
Have you linked your binary to CoreLocation.Framework ? 您是否已将二进制文件链接到CoreLocation.Framework ? This is how you link frameworks to your binary. 这是您将框架链接到二进制文件的方式。
The answer to this question will also help you to link framework with your project 这个问题的答案也将帮助您将框架与您的项目联系起来
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.