2013-07-13 111 views
1

我得到了以下错误:CoreLocation未定义的符号

Undefined symbols for architecture i386: 
    "_CLLocationCoordinate2DMake", referenced from: 
     -[ViewController loadView] in ViewController.o 

我看着前面的StackOverflow职位,他们说,确保CoreLocation.framework在“链接二进制与图书馆”,在构建阶段目标中的标签,我做了。

回答

2

有两件事情你需要做的:

1)

请确定你的目标会员检查为CoreLocation.framework,像这样:

target membership checked on

2)

确保您已完成“#import <CoreLocation/CoreLocation.h>“位于ViewController.m文件的顶部。