为模拟器构建时出现架构 i386 错误的未定义符号
Undefined symbols for architecture i386:
“_OBJC_CLASS_$_CLLocationManager”,引用自: RootViewController.o“_kCLLocationAccuracyNearestTenMeters”中的 objc-class-ref,引用自: -RootViewController.o ld中的[RootViewController locationManager]:未找到体系结构i386收集2的符号:ld返回1 退出状态
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CLLocationManager", referenced from:
objc-class-ref in RootViewController.o "_kCLLocationAccuracyNearestTenMeters", referenced from:
-[RootViewController locationManager] in RootViewController.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1
exit status
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须将二进制文件链接到 CoreLocation.framework。就这样。
You must link your binary to CoreLocation.framework. That's all.
您是否将二进制文件链接到 CoreLocation.Framework? 这就是将框架链接到二进制文件的方式。
这个问题的答案也将帮助您链接框架与你的项目
Have you linked your binary to 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