swift链接器命令失败,退出代码为1 Google Maps iOS Util pod安装

swift链接器命令失败,退出代码为1 Google Maps iOS Util pod安装,ios,swift,google-maps,cocoapods,google-maps-ios-utils,Ios,Swift,Google Maps,Cocoapods,Google Maps Ios Utils,我的生成失败,原因是swift链接器命令失败,退出代码为1。日志明确指出,未找到架构x86_64的符号 自从我尝试设置谷歌地图iOS Utils以来,这种情况就一直存在 这是我的播客文件。有一个pre_install部分,因为如果没有它,pod install将有一个“Pods-Project”目标具有包含静态二进制文件的可传递依赖项 # platform :ios, '9.0' target 'My App' do use_frameworks! platform :ios, '1

我的生成失败,原因是
swift链接器命令失败,退出代码为1
。日志明确指出,未找到架构x86_64的
符号

自从我尝试设置
谷歌地图iOS Utils
以来,这种情况就一直存在

这是我的播客文件。有一个
pre_install
部分,因为如果没有它,
pod install
将有一个
“Pods-Project”目标具有包含静态二进制文件的可传递依赖项

# platform :ios, '9.0'

target 'My App' do
  use_frameworks!

  platform :ios, '11.3'

  # Pods for My App
  pod 'GoogleMaps'
  pod 'Google-Maps-iOS-Utils' #the new pod that caused issues
  pod 'Firebase/Core'
  pod 'Firebase/Auth'
  pod 'GoogleSignIn'
  pod 'Firebase/Database'
  pod 'Firebase/Storage'
  pod 'FirebaseUI/Storage'
  pod 'Fabric', '~> 1.7.9'
  pod 'Crashlytics', '~> 3.10.5'

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

end

pre_install do |installer|
    Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
这是我的桥接头

#ifndef Bridging_Header_h
#define Bridging_Header_h
#import <Google-Maps-iOS-Utils/GMUMarkerClustering.h>
#endif /* Bridging_Header_h */
\ifndef桥接头\u h
#定义桥接头
#进口
#endif/*桥接头*/
我尝试了一些故障排除措施: 再次清理构建文件夹和构建; 取消集成吊舱并重新安装吊舱

感谢您的帮助。谢谢。

为我工作。在pod文件中也不需要这个部分

pre_install do |installer|
    Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
在构建阶段,我还必须删除框架和二进制搜索路径。

对我很有效。在pod文件中也不需要这个部分

pre_install do |installer|
    Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end

我还必须在构建阶段删除框架的二进制搜索路径。

尝试在构建设置的二进制搜索路径中添加库位置。

尝试在构建设置的二进制搜索路径中添加库位置。

查看此处:在构建设置的二进制搜索路径中添加库位置。查看此处:在中添加库位置生成设置的二进制搜索路径。