链接器命令失败 - 架构armv7的未定义符号

时间:2018-01-04 17:52:24

标签: google-maps linker cocoapods google-maps-sdk-ios

我正在尝试通过cocoapods安装Google Maps Utils插件,以便我可以利用群集功能。我已按照谷歌逐步提供的设置指南,但我在链接过程中遇到了构建错误。 我得到的错误是:

Undefined symbols for architecture armv7: 
"_OBJC_CLASS_$_POIItem", referenced from:
  objc-class-ref in MainViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

有没有人有解决方案?我已经尝试过我能在网上找到的所有内容。

提前致谢!

编辑:

我已将POIItem定义如下:

#import "ViewController.h"

#import <Google-Maps-iOS-Utils/GMUMarkerClustering.h>
#import <GoogleMaps/GoogleMaps.h>

// Point of Interest Item which implements the GMUClusterItem 
protocol.
@interface POIItem : NSObject<GMUClusterItem>

@property(nonatomic, readonly) CLLocationCoordinate2D position;
@property(nonatomic, readonly) NSString *name;

- (instancetype)initWithPosition:(CLLocationCoordinate2D)position name:(NSString *)name;

@end

以下是我所遵循的设置指南的链接:Google Guide

0 个答案:

没有答案