Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift 链接器命令失败,退出代码为1:Google Maps_Swift_Google Maps - Fatal编程技术网

Swift 链接器命令失败,退出代码为1:Google Maps

Swift 链接器命令失败,退出代码为1:Google Maps,swift,google-maps,Swift,Google Maps,我正在尝试使用谷歌地图,当我尝试将地图添加到我的视图时,我在运行该程序时出现以下错误: 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

我正在尝试使用谷歌地图,当我尝试将地图添加到我的视图时,我在运行该程序时出现以下错误:

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

使用CoCoapod后,需要使用
.xcworkspace
文件,而不是
.xcodeproj
文件。在使用
.xcworkspace
文件构建项目后,应该解决此问题