ios - 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 的项目中,我也没有运气在那里摆脱它。欢迎任何关于如何保持故障排除的建议。
解决方案
推荐阅读
- python - 如何将图像添加到烧瓶网站?使用数据库或文件名?Python
- java - 将 MySQL 数据库中的数据放入 JPanel 的 JFree 图表
- omnet++ - 如何在 OMNeT++ 中指定消息源和目标
- python-3.x - 大熊猫时间序列的百分比变化
- python - 在 Python 中有没有办法创建一个 for 循环,在再次迭代之前不等待内部代码完成?
- ruby - 如何为外部迭代创建一个“克隆”的枚举器?
- css - 使用 nth-child 将 css 动画持续时间添加到不同的元素
- java - 如何使用retrofi根据id获取详细信息
- pip - 安装使用的命名空间包的依赖项
- email - Outlook 中电子邮件的简短预览显示图像 src 而不是替代文本