未找到Firebase框架

问题描述:

我一直在尝试将我的项目迁移到cocoapods。未找到Firebase框架

我觉得我几乎没有,但我被困在:

ld: framework not found Firebase for architecture x86_64 error: linker command failed with exit code 1 (use -v to see invocation)

我想用我的“app.xcworkspace”编制和项目如下:

project navigator

另外:

libraries

我试过开始其他项目和Firebase的作品,所以这是这个项目设置的问题......任何想法?

我podfile看起来是这样的:

# Uncomment this line to define a global platform for your project 
# platform :ios, ‘8.0’ 

target 'Parti' do 
    # Comment this line if you're not using Swift and don't want to use dynamic frameworks 
    use_frameworks! 

    # Pods for Parti 

    pod 'Firebase' 
    pod 'Firebase/Storage' 
    pod 'Firebase/Auth' 
    pod 'Firebase/Database' 

    target 'PartiTests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 

    target 'PartiUITests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 

end 

这可能是相关的补充,Xcode的尝试时错误发生在“链接/用户/ MYNAME /库/开发商/ Xcode中/ DerivedData /杂色gsdsljzobcnqjkgutfpjasgrsfck /构建/产品/调试-iphonesimulator/Parti.app /杂色”

刚刚找到答案。似乎我有一个旧的geofire版本,而新版本尚不能作为Pod使用...

Github Issue link

谢谢您的回答家伙。

我知道这听起来很远取,但:

  1. 清洁项目。产品展示 - >清洁
  2. 重启XCode(并不总是需要)从项目文件夹
  3. 运行pod update & pod install

更新:Podfile应该更像:

use_frameworks! 

    target 'Parti' do 
     pod 'Firebase' 
     pod 'Firebase/Storage' 
     pod 'Firebase/Auth' 
     pod 'Firebase/Database' 
    end 

    target 'PartiUITests' do 
     pod 'Firebase' 
     pod 'Firebase/Storage' 
     pod 'Firebase/Auth' 
     pod 'Firebase/Database' 
    end 
+0

仍引发错误。 –

+0

试试这个Podfile并重复步骤3 – Idan

+2

'pod update && pod install'为我工作,谢谢:) – GabLeRoux

一些提示:

  • 确保你的Podfile是正确的(你忘了取消注释use_frameworks!线?您是否正确添加了吊舱?)

  • 您是否忘记运行“吊舱安装”?

  • 您是否尝试过清理项目和构建文件夹?

+0

尝试了所说的一切,但清理了构建文件夹。刚刚做到了,没有运气。 –

请确保您在项目目标的标题搜索路径,框架搜索路径和库搜索路径中添加了$(继承)。

还要确保在项目文件中的框架文件夹中(不在您的豆荚中,单击项目导航器中的项目名称),“libPods-YourProjectName.a”不是红色。如果是,请删除它并重新构建。

+0

刚刚做到了。没解决:( –

加$ PROJECT_DIR /吊舱(使它递归)

到框架搜索路径

不管出于什么原因只帮我,也许你太