【问题标题】:Getting errors: framework not found FirebaseCore出现错误:找不到框架 FirebaseCore
【发布时间】: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


【解决方案1】:

关闭xcode 吊舱重新整合 吊舱安装 打开xcode 命令+k 建成

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-02-08
    • 2019-07-13
    • 1970-01-01
    • 1970-01-01
    • 2019-07-01
    • 1970-01-01
    • 2013-12-04
    • 1970-01-01
    相关资源
    最近更新 更多