Undefined symbols for architecture i386:
"", referenced from:
objc-class-ref in LocationViewController.o
"_kCLDistanceFilterNone", referenced from:
-[LocationViewController viewDidLoad] in LocationViewController.o
"_kCLLocationAccuracyBest", referenced from:
-[LocationViewController viewDidLoad] in LocationViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
点击工程,在主界面中点击Build Phases,点开 Link Binary With Libraries,点击添加按钮“+”,加入CoreLocation.framework