编译设置中,如下图所示设置
1、将Valid Architectures 中的 arm64删除
2、将Build Active Architecture Only 设置为 NO
否则会报错类似如下:
Undefined symbols for architecture x86_64:
“_OBJC_CLASS_$_BMKMapManager”, referenced from:
objc-class-ref in SAAppDelegate.o
“_OBJC_CLASS_$_BMKMapView”, referenced from:
objc-class-ref in SAViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Pingback: 百度地图使用第一讲:SDK导入 | 小龙虾博客 (Crayfish)