我一直在尝试将我的项目迁移到 
 cocoapods. 
  
 
我觉得我几乎就在那里,但我陷入了困境:
ld: framework not found Firebase for architecture x86_64
error: linker command Failed with exit code 1 (use -v to see invocation)
我正在尝试使用我的“app.xcworkspace”进行编译,项目如下所示:
也:
我尝试过启动其他项目和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尝试“链接/Users/myname/Library/Developer/Xcode/DerivedData/Parti-gsdsljzobcnqjkgutfpjasgrsfck/Build/Products/Debug-iphonesimulator/Parti.app/Parti”时会发生错误.
解决方法
 我知道听起来很不错,但是: 
  
 
        >清理项目.产品 – >清洁
>重启XCode(并不总是需要)
>运行pod update& pod从项目文件夹安装
更新: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