ios Xcode 返回链接器错误“未找到 -lFirebaseAuth 的库”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51020924/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 09:44:48  来源:igfitidea点击:

Xcode returns linker error "library not found for -lFirebaseAuth"

iosxcodefirebaseunity3dlinker

提问by Ali Avc?

I wanted to test firebase initial app on Unity. I made a build from Unity in macOS and in Xcode project folder, I have runned the pod command successfully.

我想在 Unity 上测试 firebase 初始应用程序。我在 macOS 和 Xcode 项目文件夹中从 Unity 进行了构建,我已经成功运行了 pod 命令。

pod install

吊舱安装

After this I opened Xcode project and I clicked to build button. Before this, I was getting framework not found error. I fixed it and now I am getting

在此之后,我打开了 Xcode 项目,然后单击了构建按钮。在此之前,我收到了未找到框架的错误。我修好了,现在我得到了

ld: warning: directory not found for option '-L/Users/ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/FirebaseAuth'
ld: warning: directory not found for option '-L/Users/ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/FirebaseCore'
ld: warning: directory not found for option '-L/Users/aliavci/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/GTMSessionFetcher'
ld: warning: directory not found for option '-L/Users/ali[![enter image description here][1]][1]/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/Users/ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/nanopb'
ld: library not found for -lFirebaseAuth
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have already added library pathes to library search path. I added some screenshots as attachments.

我已经将库路径添加到库搜索路径。我添加了一些截图作为附件。

xcode properties

xcode 属性

podfile

播客文件

回答by Ali Avc?

I solved the error by opening ".xcworkspace" file, instead of ".xcodeproj" file.

我通过打开“.xcworkspace”文件而不是“.xcodeproj”文件解决了这个错误。