Undefined symbols for architecture i386:

场景:Undefined symbols for architecture i386 异常

Undefined symbols for architecture i386 错误

Undefined symbols for architecture i386:

  "_OBJC_CLASS_$_CLLocationManager", referenced from:

      objc-class-ref in HotelQueryViewController.o

ld: symbol(s) not found for architecture i386

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


这是今天弄百度地图api发现的错误,出现这个错误就是在项目中缺少框架

只要导入一个框架即可----CoreLocation.framework