链接器命令退出代码1失败:谷歌地图

问题描述:

我试着去使用谷歌地图,当我尝试将地图添加到我的观点我得到这个错误,当我运行程序:链接器命令退出代码1失败:谷歌地图

Linker command Failed with Exit code 1 (use -v to see invocation) 

我该怎么办解决这个问题?

这是我使用

# platform :ios, '9.0' 

target 'FlexxRide' do 
# Comment the next line if you're not using Swift and don't want to use    
dynamic frameworks 
use_frameworks! 

# Pods for FlexxRide 
    pod 'GoogleMaps' 
    pod 'GooglePlaces' 
    pod 'Firebase/Core' 
    pod 'Firebase/Database' 

target 'FlexxRideTests' do 
    inherit! :search_paths 
    # Pods for testing 
end 

target 'FlexxRideUITests' do 
inherit! :search_paths 
# Pods for testing 
end 

end 

使用的CocoaPods后podfile,你需要使用的,而不是.xcodeproj文件.xcworkspace文件。这个问题应该在您使用.xcworkspace文件构建您的项目后解除