今天将高德地图集成到ios模拟器编译出现了一个错误
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_MAMapServices", referenced from: objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_MAMapView", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
这个问题的解决方案还是比较简单的
1.打开工程项目属性
2.找到Build Settings
3.修改Architectures中的Architechtures的属性,修改$(ARCHS_STANDARD)为$(ARCHS_STANDARD_32_BIT)
4.编译工程,问题得到修复
不过,我不清楚这样修改会不会带来什么副作用。