首页 > 解决方案 > Xcode 错误:“ld:找不到框架...”

问题描述

我在 Xcode 上有一个使用 Firebase 的 iOS 项目,该项目是通过 Cocoapods 下载的。一切工作正常 - 在模拟器和设备上运行 - 直到我尝试在 iPad 第 7 代模拟器上运行该应用程序并引发此错误:

ld: framework not found GoogleAppMeasurement
clang: error: linker command failed with exit code 1 (use -v to see invocation)

现在该项目不会在任何设备或模拟器上构建。我浏览了 Pods 文件夹以检查 GoogleAppMeasurement 是否有它的框架并且确实有。除了这个错误之外,没有以红色突出显示的框架(就像提到的其他一些相关问题一样)或其他可能出错的指示。这是我的 pod 文件,以防万一:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'my project's name' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for my project's name
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Core'

end

同样的错误出现在我的另一个依赖 firebase 的项目中,我也没有运气在那里摆脱它。欢迎任何关于如何保持故障排除的建议。

标签: iosswiftxcodefirebasecocoapods

解决方案


推荐阅读