构建模拟器时,架构i386的未定义符号出错

ohm*_*ash 2 iphone objective-c ios ios-simulator

Undefined symbols for architecture i386:
Run Code Online (Sandbox Code Playgroud)

"_OBJC_CLASS _ $ _ CLLocationManager",引自:RootViewController.o中的objc-class-ref"_kCLLocationAccuracyNearestTenMeters",引自: - RootViewController.o中的[RootViewController locationManager] ld:未找到架构i386的符号collect2:ld返回1退出状态

jus*_*tin 8

您必须将二进制文件链接到CoreLocation.framework.就这样.