ios 百度地图开发之异常

  1. 找不到库libbaidumapapi,原因是直接从别的项目里拖动库到当前项目,解决办法右键项目名,选择add files to ...,从finder里找到库,并加入
1
2
ld: library not found for -lbaidumapapi
clang: error: linker command failed with exit code 1 (use -v to see invocation)

2.

1
2
3
4
5
6
ld: warning: ignoring file /Users/apple/Documents/MapDemo/libbaidumapapi.a, missing required architecture i386 in file /Users/apple/Documents/MapDemo/libbaidumapapi.a (2 slices)
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_BMKMapManager", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

3.直接重启电脑。。。,ok

1
This generally means that another instance of this process was already running or is hung in the debugger

4.找到Supporting Files里的main.m,更名为main.mm

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
"std::terminate()", referenced from:

      +[BMKNotifier(InternalMethod) getPoiResult:withData:withType:] in libbaidumapapi.a(BMKNotifier.o)

      +[BMKNotifier(InternalMethod) getAddrInfo:withData:] in libbaidumapapi.a(BMKNotifier.o)

      +[BMKNotifier(InternalMethod) getGeocodeInfo:withData:] in libbaidumapapi.a(BMKNotifier.o)

      +[BMKNotifier(InternalMethod) getTransitRouteResult:withData:] in libbaidumapapi.a(BMKNotifier.o)

      +[BMKNotifier(InternalMethod) getBusLine:withData:] in libbaidumapapi.a(BMKNotifier.o)

      +[BMKNotifier(InternalMethod) getStationInfo:start:end:] in libbaidumapapi.a(BMKNotifier.o)

      +[BMKNotifier(InternalMethod) getRouteResult:withData:type:] in libbaidumapapi.a(BMKNotifier.o)

      ...

5.在storyboard中使用BaiduMap_iOSSDK_v2.0.1,当程序执行到_mapView=[[BMKMapView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)];
时,报下面错误

暂时没有找到解决办法,望高手不吝赐教

无奈有换回了1.2.3.2版本

1
EXC_BAD_ACCESS(code=2,address=0*4)

声明:eoe文章著作权属于作者,受法律保护,转载时请务必以超链接形式附带如下信息

原文作者: taobong

原文地址: http://my.eoe.cn/first/archive/5530.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值