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
文件构建项目后,应该解决此问题