在我的项目中实施KMLViewer时出错 [英] Error while implementing KMLViewer in my project

查看:85
本文介绍了在我的项目中实施KMLViewer时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在项目中加入了Apple KML Viewer的类KMLParser.m.我遇到的问题是,当我尝试构建项目时遇到了两个错误:

I have included the class KMLParser.m of Apple's KML Viewer in my project.The problem that I have is that when I try to build the project i get two errors like these:

_CLLocationCoordinate2DMake,引用自: KMLParser.o中的_strToCoords

_CLLocationCoordinate2DMake,referenced from: _strToCoords in KMLParser.o

_CLLocationCoordinate2DisValid,引用自: KMLParser.m

我不知道为什么会发生此错误,因为我保留了文件KMLParser.mKMLParser.h完整无缺,因此我没有对其进行任何更改.构建KML Viewer时,一切都很好.请照亮我.

I don't have any idea why this error occurs, because i have left the files KMLParser.m and KMLParser.h intact, I haven't made any change to them.When I build KML Viewer, everything is fine. Please,illuminate me.

推荐答案

您需要向项目中添加Core Location框架(仅#import是不够的).

You need to add the Core Location framework to your project (an #import alone is not enough).

对于Xcode 3.x,右键单击项目文件,然后转到添加-现有框架".

For Xcode 3.x, right-click on the project file and go to Add - Existing Frameworks.

对于Xcode 4.x,请参见如何添加现有内容"框架"在Xcode 4中?.

For Xcode 4.x, see How to "add existing frameworks" in Xcode 4?.

这篇关于在我的项目中实施KMLViewer时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆