将基础 sdk 设置为 4.0 并将操作系统部署目标设置为 3.1.3 时出现问题(使用 MapKit)
我正在构建一个使用 MapKit 功能的应用程序。基础 sdk 是 4.0,但我正在构建 3.1.3 设备(操作系统部署目标设置为 3.1.3)。安装应用程序并开始运行后,我遇到以下错误:
dyld:未找到符号:_CLLocationCooperative2DMake 数据格式化程序暂时不可用,将在“继续”后重试。 (此时调用 dlopen 不安全。) mi_cmd_stack_list_frames:堆栈中没有足够的帧。 mi_cmd_stack_list_frames:堆栈中没有足够的帧。 Kill quit
请记住,此崩溃发生在用户执行任何操作之前。我已经正确添加了 MapKit 库,它在 4.0 设备上构建并运行良好。
谢谢
I'm building an application that uses MapKit functionality. The base sdk is 4.0 but I'm building to a 3.1.3 device (the OS Deployment Target is set to 3.1.3). After the app is installed and right when it begins to run, I run into the following error:
dyld: Symbol not found: _CLLocationCoordinate2DMake Data Formatters temporarily unavailable, will re-try after a 'continue'. (Not safe to call dlopen at this time.) mi_cmd_stack_list_frames: Not enough frames in stack. mi_cmd_stack_list_frames: Not enough frames in stack. kill quit
Keep in mind that this crash happens before the user would do anything at all. I have correctly added the MapKit Library and it builds and runs fine on a 4.0 device.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您确定链接了 MapKit 和 CoreLocation 吗?
Did you make sure to link both MapKit and CoreLocation?
您是否在代码中的任何位置调用 CLLocationCooperative2DMake?如果是这样,这可能就是问题所在。您应该确保在该方法不存在时不要调用该方法(在调用之前检查 CLLocationCooperative2DMake != nil 是否存在)。
Are you calling CLLocationCoordinate2DMake anywhere in your code? If so, this is probably the problem. You should make sure to not call this method when it's not present (check to see if CLLocationCoordinate2DMake != nil before calling).
如果您使用 CLLocationCooperative2DMake仅适用于iOS4.0及更高版本
If you are using CLLocationCoordinate2DMake it is only available in iOS4.0 and later