/Users/nunujeanne/Downloads/LBSYunDemo/LBSYunDemo/BaiduMapApi/libbaidumapapi.a (3 slices)

之前下了一个百度地图官方的LBS云Demo,在iPhone4s下编译没有错,但是在iPhone5s环境编译时,就出现了下述的错误:

ld: warning: directory not found for option '-L/Users/nunujeanne/Downloads/LBSYunDemo/LSBYunDemo/BaiduMapApi'

ld: warning: ignoring file /Users/nunujeanne/Downloads/LBSYunDemo/LBSYunDemo/BaiduMapApi/libbaidumapapi.a, missing required architecture x86_64 in file /Users/nunujeanne/Downloads/LBSYunDemo/LBSYunDemo/BaiduMapApi/libbaidumapapi.a (3 slices)

Undefined symbols for architecture x86_64:

  "_OBJC_CLASS_$_BMKMapManager", referenced from:

      objc-class-ref in LBSAppDelegate.o

  "_OBJC_CLASS_$_BMKMapView", referenced from:

      objc-class-ref in LBSIndex1ViewController.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)


/Users/nunujeanne/Downloads/LBSYunDemo/LBSYunDemo/BaiduMapApi/libbaidumapapi.a (3 slices)_第1张图片


其实这个错误就是一个编译环境不支持的问题。

两步改好~~~

1.


/Users/nunujeanne/Downloads/LBSYunDemo/LBSYunDemo/BaiduMapApi/libbaidumapapi.a (3 slices)_第2张图片

把这里的arm64去掉;


2.


把这里改为NO就行了。

然后编译就没有问题了。

注:我用的xcode beta版。

该文转自:http://www.th7.cn/Program/IOS/201409/281351.shtml

(PS:我遇到该问题的情况在百度社会化组件Baidu-Frontia-iOS-2.0.2中,凑巧遇到了作者的博文,也就懒得自己写博客了)

你可能感兴趣的:(/Users/nunujeanne/Downloads/LBSYunDemo/LBSYunDemo/BaiduMapApi/libbaidumapapi.a (3 slices))