在我通过"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-03-13 18:14:48
当我试图在我的设备上运行它时,我也遇到了同样的问题。在模拟器上,它工作得很好。我尝试了上面的一些方法,但对我来说不起作用。我检查了我正在做的
而不是
文件,所以我尝试了这个。请按照以下步骤执行以下操作:
使用.xc打开Xcode项目(cocoapods项目)...文件。
在项目导航器中选择Pods项目(左侧的蓝色图标)。
在Targets下,确保选中Pods-ProjectName (蓝色图标)。
导航到“生成设置”,并设置要在其上运行项目的iOS版本的iOS部署目标。
注意:它与您在中设置的内容相同
..。
也许有人会从中受益。
https://stackoverflow.com/questions/40358719
复制相似问题