Google 地图 Swift 2 种椰子
Google maps Swift 2 cocoapods
我正在尝试在我的 swift 项目中实现 google 地图 SDK,但是当我导入 GoogleMaps 并编译我的代码时,我得到了这个错误:
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)
我按照 this 教程,我的 Podfile 是这样的
use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
pod 'GoogleMaps'
如果你知道我能做些什么来解决这个问题,我非常感谢:)
我找到了答案,在我有 -objC
的其他链接标志的构建设置中,我用 $(inherited) 改变了它,就像这个问题的第一个答案 Undefined symbols for architecture armv7 while using Google-Maps-iOS-SDK (1.8.1)
我正在尝试在我的 swift 项目中实现 google 地图 SDK,但是当我导入 GoogleMaps 并编译我的代码时,我得到了这个错误:
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)
我按照 this 教程,我的 Podfile 是这样的
use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
pod 'GoogleMaps'
如果你知道我能做些什么来解决这个问题,我非常感谢:)
我找到了答案,在我有 -objC
的其他链接标志的构建设置中,我用 $(inherited) 改变了它,就像这个问题的第一个答案 Undefined symbols for architecture armv7 while using Google-Maps-iOS-SDK (1.8.1)