【发布时间】:2016-07-07 12:45:53
【问题描述】:
我一直在尝试将我的项目迁移到 cocoapods。
我觉得我快到了,但我陷入了困境:
ld:未找到适用于 x86_64 架构的 Firebase 框架 错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
我正在尝试使用我的“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”时可能会发生错误。
【问题讨论】:
标签: ios swift firebase cocoapods