Ios 谷歌地图Swift 2 Cocoapod

Ios 谷歌地图Swift 2 Cocoapod,ios,swift,google-maps,swift2,cocoapods,Ios,Swift,Google Maps,Swift2,Cocoapods,我正在尝试在我的swift项目中实现google maps SDK,但当我导入google maps并编译代码时,我遇到以下错误: ld: warning: Auto-Linking supplied '/Users/ligup/Documents/Xcode Projects/Ligup/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps', framework linker option at /Users/ligup/Doc

我正在尝试在我的swift项目中实现google maps SDK,但当我导入google maps并编译代码时,我遇到以下错误:

ld: warning: Auto-Linking supplied '/Users/ligup/Documents/Xcode Projects/Ligup/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps', framework linker option at /Users/ligup/Documents/Xcode Projects/Ligup/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps is not a dylib
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_GMSCameraPosition", referenced from:
      type metadata accessor for __ObjC.GMSCameraPosition in InformationDetailViewController.o
  "_OBJC_CLASS_$_GMSMapView", referenced from:
      type metadata accessor for __ObjC.GMSMapView in InformationDetailViewController.o
  "_OBJC_CLASS_$_GMSMarker", referenced from:
      type metadata accessor for __ObjC.GMSMarker in InformationDetailViewController.o
  "_OBJC_CLASS_$_GMSServices", referenced from:
      type metadata accessor for __ObjC.GMSServices in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我遵循教程,我的播客文件如下

use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
pod 'GoogleMaps'

如果你知道我能做些什么来解决这个问题,我真的很感激:)

我找到了答案,在其他链接标志的构建设置中,我有
-objC
,我用$(继承的)这样更改它,这是这个问题的第一个答案

你可能想要清理你的项目,
rm-rf Pods;Podfile.lock
,然后按照以下答案操作: