【发布时间】:2018-08-31 04:01:59
【问题描述】:
我不断收到以下错误
ld: framework not found FirebaseCore
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这是 pod 文件
platform :ios, '11.4'
target 'Myproject' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
#use_frameworks!
use_modular_headers!
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'
pod 'Firebase/Crash'
pod 'FirebaseStorageCache'
end
我这几天一直在努力解决这个问题。请求您的帮助。
【问题讨论】:
-
您打开的是“.xcworkspace”而不是“.xcodeproj”吗?安装 pod 时,没有发出命令?
-
是否删除 use_modular_headers!有所作为?
-
是的,我正在使用 xcworkspace...我尝试删除 use_modular_headers!也。我得到一个不同的错误。这是我得到的错误“[!] 'Pods-project' 目标具有传递依赖项,包括静态框架:(FirebaseAuth、FirebaseCore、FirebaseDatabase 和 FirebaseStorage)”
-
你找到解决办法了吗?
标签: ios firebase firebase-realtime-database cocoapods