Xcode返回链接器错误“找不到-lFirebaseAuth的库"; [英] Xcode returns linker error "library not found for -lFirebaseAuth"
问题描述
我想在Unity上测试Firebase初始应用程序.我在macOS和Xcode项目文件夹中通过Unity进行了构建,已成功运行pod命令.
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.
pod安装
此后,我打开了Xcode项目,然后单击"build"按钮.在此之前,我遇到了框架未找到错误.我修好了,现在我得到了
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
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.
推荐答案
我通过打开".xcworkspace"文件而不是".xcodeproj"文件解决了该错误.
I solved the error by opening ".xcworkspace" file, instead of ".xcodeproj" file.
这篇关于Xcode返回链接器错误“找不到-lFirebaseAuth的库";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!