在我通过"pod update“更新我的Firebase后,我得到了这样的错误:
ld: warning: directory not found for option '-F/Users/bennysantoso/Library/Developer/Xcode/DerivedData/FCM-atfcxuircoryufazlomgwfgmvaqm/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: framework not found GoogleToolboxForMac
clang: error: linker command failed with exit code 1 (use -v to see invocation)这是我的Podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
target 'BB' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for BB
target 'BBTests' do
inherit! :search_paths
# Pods for testing
end
target 'BBUITests' do
inherit! :search_paths
# Pods for testing
end
end有人知道这个错误吗?
我寻找GoogleToolboxForMac和Firebase的关系,但我只能得到一点信息。
仅供参考,我使用Swift 2.3和Firebase 3.8.0。
如果您能提供任何帮助,我将不胜感激。谢谢!
发布于 2018-11-09 18:53:31
如果您在XCode中遇到相同的错误,请转到:
你的项目
>
你的目标
>向下滚动到
链接的框架和库
并检查Library条目是否变暗:

如果是,请删除并重新添加。在我的例子中,我有重复的条目,其中一个是灰显的(当XCode在磁盘上找不到它们时)。
https://stackoverflow.com/questions/40358719
复制相似问题