ios – 未找到框架GTMOAuth2

前端之家收集整理的这篇文章主要介绍了ios – 未找到框架GTMOAuth2前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在编译 Xcode项目时不断收到此错误,并且在我的生活中无法弄清楚问题是什么.

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

我正在使用带有Podfile的.xcworkspace工作:

use_frameworks!
      pod 'Firebase','~> 4.0'
      pod 'Firebase/Core'
      pod 'Firebase/Invites'
      pod 'Firebase/Analytics'
      pod 'Firebase/Messaging'
      pod 'TwitterKit'
      pod 'GoogleSignIn'
      pod 'GTMOAuth2'

除其他外.它发现所有平台都保存了GTMOAuth2.奇怪的是,否则一切看起来都是有序的 – 我正在打开正确的xcworkspace,绝对不是xcodeproj

My Pods目录按顺序显示

Pods directory

在我的pod中,我将其视为目标:

enter image description here

这应该做到这一点.有趣的是,当我将它添加链接框架和库时,它会变成灰色……

enter image description here

此外,在构建目录中,我看到两个:
/Build/Products/Release-iphonesimulator/GTMOAuth2/GTMOAuth2.framework

./Build/Products/Release-iphoneos/GTMOAuth2/GTMOAuth2.framework

但无济于事,找不到GTMOAuth2.不知道如何继续 – 任何提示都会非常有用!我应该提一下,我是iOS开发的新手,而且该项目是在React Native App的上下文中.

解决方法

-l“GTMOAuth2”删除此行

Remove this line

然后编译:)

猜你在找的Xcode相关文章