gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:05:49 25 4
gpt4 key购买 nike

这个错误突然出现在我的 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com