百度地图在某架构下找不到符号.a文件的问题
1.现象:
就是说找不到符号给i386的架构(就是模拟器)。或者找不到符号给arm架构(真机)。
ld: warning: ignoring file /Users/pufang/xcode/demo/baidumap/lib/libs/Release-iphoneos/libbaidumapapi.a, missing required architecture i386 in file
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_BMKMapManager", referenced from:
objc-class-ref in BaiduMapApiDemoAppDelegate.o
"_OBJC_METACLASS_$_BMKPointAnnotation", referenced from:
_OBJC_METACLASS_$_RouteAnnotation in RouteSearchDemoViewController.o
"_OBJC_CLASS_$_BMKPointAnnotation", referenced from:
_OBJC_CLASS_$_RouteAnnotation in RouteSearchDemoViewController.o
objc-class-ref in AnnotationDemoViewController.o
objc-class-ref in GeocodeDemoViewController.o
objc-class-ref in PoiSearchDemoViewController.o
"_OBJC_CLASS_$_BMKSearch", referenced from:
objc-class-ref in RouteSearchDemoViewController.o
objc-class-ref in GeocodeDemoViewController.o
objc-class-ref in PoiSearchDemoViewController.o
"_OBJC_CLASS_$_BMKAnnotationView", referenced from:
objc-class-ref in RouteSearchDemoViewController.o
"_OBJC_CLASS_$_BMKPolyline", referenced from:
objc-class-ref in RouteSearchDemoViewController.o
"_OBJC_CLASS_$_BMKPolylineView", referenced from:
objc-class-ref in RouteSearchDemoViewController.o
"_OBJC_CLASS_$_BMKPlanNode", referenced from:
objc-class-ref in RouteSearchDemoViewController.o
"_OBJC_CLASS_$_BMKPinAnnotationView", referenced from:
objc-class-ref in AnnotationDemoViewController.o
objc-class-ref in GeocodeDemoViewController.o
objc-class-ref in PoiSearchDemoViewController.o
"_OBJC_CLASS_$_BMKCircle", referenced from:
objc-class-ref in OverlayDemoViewController.o
"_OBJC_CLASS_$_BMKCircleView", referenced from:
objc-class-ref in OverlayDemoViewController.o
"_OBJC_CLASS_$_BMKOfflineMap", referenced from:
2.问题:
库搜索路径指定不对或者将arm和i386的库都包含了。
3.解决方法:
找到Library Search Paths部分,删除多余的路径或者添加合适的路径。
4.参考:
http://0.zhouguangwu.duapp.com/detail.php?id=674
吧上面那个删除了就搞定了
ld: warning: directory not found for option '-L/work/svn/mapsdk/iphone/baidumapapi/build/Release-iphonesos'
ld: warning: ignoring file /Users/pufang/xcode/demo/baidumap/lib/libs/Release-iphoneos/libbaidumapapi.a, missing required architecture i386 in file
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_BMKMapManager", referenced from:
objc-class-ref in BaiduMapApiDemoAppDelegate.o
"_OBJC_METACLASS_$_BMKPointAnnotation", referenced from:
_OBJC_METACLASS_$_RouteAnnotation in RouteSearchDemoViewController.o
"_OBJC_CLASS_$_BMKPointAnnotation", referenced from:
_OBJC_CLASS_$_RouteAnnotation in RouteSearchDemoViewController.o
objc-class-ref in AnnotationDemoViewController.o
objc-class-ref in GeocodeDemoViewController.o
objc-class-ref in PoiSearchDemoViewController.o
"_OBJC_CLASS_$_BMKSearch", referenced from:
objc-class-ref in RouteSearchDemoViewController.o
objc-class-ref in GeocodeDemoViewController.o
objc-class-ref in PoiSearchDemoViewController.o
"_OBJC_CLASS_$_BMKAnnotationView", referenced from:
objc-class-ref in RouteSearchDemoViewController.o
"_OBJC_CLASS_$_BMKPolyline", referenced from:
objc-class-ref in RouteSearchDemoViewController.o
"_OBJC_CLASS_$_BMKPolylineView", referenced from:
objc-class-ref in RouteSearchDemoViewController.o
"_OBJC_CLASS_$_BMKPlanNode", referenced from:
objc-class-ref in RouteSearchDemoViewController.o
"_OBJC_CLASS_$_BMKPinAnnotationView", referenced from:
objc-class-ref in AnnotationDemoViewController.o
objc-class-ref in GeocodeDemoViewController.o
objc-class-ref in PoiSearchDemoViewController.o
"_OBJC_CLASS_$_BMKCircle", referenced from:
objc-class-ref in OverlayDemoViewController.o
"_OBJC_CLASS_$_BMKCircleView", referenced from:
objc-class-ref in OverlayDemoViewController.o
"_OBJC_CLASS_$_BMKOfflineMap", referenced from:
BMKMapManager *mapManager = [[BMKMapManager alloc]init];
[mapManager start:@"C45642BBD6852AEF5D3240C59F6C8CFE207AF843" generalDelegate:self];必须加上这行, 不然会一团黑
百度地图在某架构下找不到符号.a文件的问题的更多相关文章
- IDEA 编译找不到符号,文件却没有错误。
单独编译提交找不到符号的文件. DIEAA
- 百度地图在移动端下click无效的解决方案
这是由于百度地图在移动端屏蔽了click事件,在网上找到一种方法,利用touchClick方法来模拟click事件,代码如下(需要JQ插件): //给jquery添加touchClick方法 (fun ...
- 百度地图 Infowidow 内容(content 下标签) 点击事件
需要监听 infowindow 的打开事件 ,查看InfoWindow API 实现 html 点击效果 代码 var infoWindow = that.createDangerInfoWindo ...
- 百度地图与融云的“冲突”(APP的.so手机架构目录,与Library的.so的手机架构目录冲突)
在项目引进融云的IMkit时,总是报百度地图的错误,最开始以为是65535的错误,然后试着去改下百度地图,错误原因是在IMKit里面,它的.so库有这么几个目录 而我的app的libs里面的百度地图的 ...
- 百度地图定位API,精度提高
我使用百度定位API DEMO上面好像就可以setCoorType("bd09ll");//百度地图坐标. 然后我找了下从其它坐标体系迁移到百度坐标. 问下: 1.那我还能不能在百 ...
- IOS学习:在工程中添加百度地图SDK
1.将下载下来的sdk中的inc文件夹.mapapi.bundle.libbaidumapapi.a添加到工程中,其中libbaiduapi.a有两个,一个对应模拟器一个对应真机,导入方法如下: 第一 ...
- Android 百度地图开发(一)--- 申请API Key和在项目中显示百度地图
标签: Android百度地图API Key 分类: Android 百度地图开发(2) 最近自己想研究下地图,本来想研究google Map,但是申请API key比较坑爹,于是从百度地 ...
- Xamarin.Android 使用百度地图获取定位信息
最近做一个项目,web端使用百度地图,PDA使用手持机自带的GPS定位系统获取经纬度,然后再百度地图上显示该经纬度会有一定距离的差异,这里就像可乐的瓶子拧上雪碧的盖子,能拧的上却不美观.所以为了数据的 ...
- ueditor富文本编辑器使用百度地图自定义动态地图组件及兼容https及http协议
ueditor富文本编辑器默认支持百度地图组件,但是如果导入动态地图后会加很多默认的地图组件在上面.如果需要自定义动态地图的组件则需要修改ueditor特定的html. ueditor百度地图组件所在 ...
随机推荐
- JavaScript重载解读
在JavaScript有一个特殊的数据类型---Function种类,JavaScript每个功能Function的类型,例如可以.由于函数是对象.指针,不会与某个函数绑定. <pre name ...
- Maven入门笔记
首先安装Maven,Maven的安装很简单,这里就不在说了. 先要确定把工程放在哪个路径下,创建一个文件夹并且在该文件夹下打开shell命令.可以先运行下面的命令,创建一个工程: mvn archet ...
- 四种方案:将OpenStack私有云部署到Hadoop MapReduce环境中
摘要:OpenStack与Hadoop被誉为继Linux之后最有可能获得巨大成功的开源项目.这二者如何结合成为更猛的新方案?业内给出两种答案:Hadoop跑在OpenStack上或OpenStack部 ...
- js操作cookie方法
cookie cookie,有时也用其复数形式Cookies,指某些网站为了辨别用户身份.进行session跟踪而储存在用户本地终端上的数据(通常经过加密).定义于RFC2109和2965都已废弃,最 ...
- 介绍开源的项目管理系统-Redmine
介绍开源的项目管理系统-Redmine 分类: Redmine2009-06-01 10:12 1047人阅读 评论(0) 收藏 举报 项目管理subversionphpmyadminrailsaut ...
- Oracle常用函数:DateDiff() 返回两个日期之间的时间间隔自定义函数
首先在oracle中没有datediff()函数可以用以下方法在oracle中实现该函数的功能:1.利用日期间的加减运算天:ROUND(TO_NUMBER(END_DATE - START_DATE) ...
- 【AngularJS】 2.0 版本发布
[AngularJS] 2.0 版本发布 w5cValidator[AngularJS] 2.0 版本发布 w5cValidator 插件基于angular原有的表单验证,在原有的基础上扩展了一些 ...
- beanutils获取带参数get方法
public Employee getEmployee(int index) { return new Employee(); } 1.PropertyUtils.getIndex ...
- Redis API与常用数据类型简介
Redis API与常用数据类型简介 一.Redis API For .Net 首先,不得不说Redis官方提供了众多的API开发包,但是目前Redis官方版本不支持.Net直接进行连接,需要使用一些 ...
- 动态操作表格行(兼容IE、火狐)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...