如何修复swift链接器错误“框架未找到GTMSessionFetcher clang”

问题描述 投票:2回答:1

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

ld:找不到框架GTMSessionFetcher clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

但我把它作为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 Cocopods and firebase pod

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

我注意到我的错误与我从其他人看到的有点独特,因为它是一个GTMSessionFetcher错误。我该如何解决这个问题并摆脱错误?

ios swift cocoapods podfile
1个回答
0
投票

首先,尝试运行pod install

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

© www.soinside.com 2019 - 2024. All rights reserved.