ios - 如何修复快速链接器错误 "framework not found GTMSessionFetcher clang"

标签 ios swift cocoapods podfile gtmsessionfetcher

这个错误突然出现在我的 Swift 程序中

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

但我把它作为框架之一 enter image description here

这是pod文件

enter image description here

我已经删除了 cocoapods 并重新安装了它,但没有结果

我已经清理并打开了工作区而不是项目,但仍然没有任何变化。

我已经尝试了类似问题的所有方法,但仍然没有运气。 我看过的一些答案是 Apple Mach-O Linker Warning "Directory Not Found For Option..."

Linker command failed with exit code 1 after installing CocoaPods and firebase pod

https://www.bountysource.com/issues/39247126-clang-error-linker-command-failed-with-exit-code-1-use-vto-see-invocation

我注意到我的错误与我从其他人那里看到的有些不同,因为它是 GTMSessionFetcher 错误。 我该如何解决这个问题并消除错误?

最佳答案

首先,尝试运行 pod install

看起来GTMSessionFetcher.framework是灰色的,这意味着文件被删除了。如果 pod install 不起作用,请尝试从列表中删除每个灰显的框架文件并将其拖回(从项目文件夹或从“产品”下的边栏)。

关于ios - 如何修复快速链接器错误 "framework not found GTMSessionFetcher clang",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47728829/

相关文章:

ios - Xcode 7.2 : Impossible to run unit tests on iPhone 6s

ipad - 无法使用 UIScrollView 时,如何在自定义 UIView 中模拟惯性滚动?

ios - 如何在 Swift 的未知宽度和高度的 View 中将 UIBezierPath 椭圆居中?

ios - 将新用户插入 firebase

swift - 生成的 MTLTexture 比 CGImage 更轻

ios - 在 iOS10+ 播放完成后,如何从锁屏中消失播放器控件?

ios - 如何在文本字段中找到 UITextInput 创建的字符串(或长度)? ( swift )

cocoapods - 如何在 cocoapods 中包含特定 pod 的 .pch?

cocoa - 如何在不触及其他依赖项的情况下更新单个 Pod

react-native - 运行 pod install 时,React native 0.64.0 与 CocoaPods 1.10.0 不兼容