Undefined symbols for architecture i386: "_OBJC_CLASS_$_CLLocationManager", referenced from:

Xcode开发遇到的问题


问题描述: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)


解决方法:链接CoreLocation.framework。点击工程,在主界面中点击Build Phases,点开 Link Binary With Libraries,点击添加按钮“+”,加入CoreLocation.framework。

---http://stackoverflow.com/questions/6210528/gcc-4-2-failed-with-exit-code-1-error


你可能感兴趣的:(ios)