百度地图api问题 Undefined symbols for architecture i386: "_OBJC_CLASS_$_BMKAnnotationView", referenced

百度地图api问题: 

Undefined symbols for architecture i386: 
"_OBJC_CLASS_$_BMKAnnotationView", referenced from: 
_OBJC_CLASS_$_LocationAnnotationView in LocationAnnotationView.o 
"_OBJC_CLASS_$_BMKMapManager", referenced from: 
objc-class-ref in BaiduMapViewController.o 
"_OBJC_CLASS_$_BMKMapView", referenced from: 
objc-class-ref in BaiduMapViewController.o 
"_OBJC_CLASS_$_BMKPinAnnotationView", referenced from: 
objc-class-ref in BaiduMapViewController.o 
"_OBJC_CLASS_$_BMKPlanNode", referenced from: 
objc-class-ref in BaiduMapViewController.o 
"_OBJC_CLASS_$_BMKPointAnnotation", referenced from: 
objc-class-ref in BaiduMapViewController.o 
"_OBJC_CLASS_$_BMKSearch", referenced from: 
objc-class-ref in BaiduMapViewController.o 
"_OBJC_METACLASS_$_BMKAnnotationView", referenced from: 
_OBJC_METACLASS_$_LocationAnnotationView in LocationAnnotationView.o 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 


解决方法: 成静态库即可,网上搜搜有的百度地图真机和模拟器的静态库合成

猜你喜欢

转载自blog.csdn.net/xiao19911130/article/details/50038737