ios – 找不到Firebase框架

ios – 找不到Firebase框架,第1张

概述我一直在尝试将我的项目迁移到 cocoapods. 我觉得我几乎就在那里,但我陷入了困境: ld: framework not found Firebase for architecture x86_64 error: linker command failed with exit code 1 (use -v to see invocation) 我正在尝试使用我的“app.xcworkspac @H_502_1@我一直在尝试将我的项目迁移到 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  endend

可能有必要补充说,当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
总结

以上是内存溢出为你收集整理的ios – 找不到Firebase框架全部内容,希望文章能够帮你解决ios – 找不到Firebase框架所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1107352.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存