我一直在尝试将我的项目迁移到 cocoapods。
我觉得我快到了,但我陷入了困境:
ld:找不到架构 x86_64 的 Firebase 框架
错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
我正在尝试使用我的“app.xcworkspace”进行编译,该项目如下所示:
Also:
我尝试启动其他项目并且 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 尝试“Link /Users/myname/Library/Developer/Xcode/DerivedData/Parti-gsdsljzobcnqjkgutfpjasgrsfck/Build/Products/Debug-iphonesimulator/Parti.app/Parti”时,会发生错误
我知道这听起来很遥远,但是:
- 清理项目。产品 -> 清洁
- Restart
XCode
(并不总是需要)
- Run
pod update
& pod install
从项目文件夹
Update: The 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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)