【发布时间】:2016-08-08 15:36:14
【问题描述】:
我在 Swift 中有一个项目,我在其中使用了一些库。当我在模拟器或物理设备上运行时,它运行良好。但是当我尝试归档项目以将其发送到商店时,我收到以下错误消息:
ld: library not found for -lFirebase
问题是当我使用XLForm 库时,这是我对Podfile 所做的最后一次修改。
自从我开始使用 CocoaPods 以来,我一直在使用.xcworkspace,之前我从未遇到过任何问题。
我的Podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
# use_frameworks!
pod 'Firebase', '= 2.5.0'
pod 'Google/CloudMessaging'
pod 'Google'
pod 'Google/Analytics'
pod 'XLForm', '~> 3.0'
target 'Dimmi' do
end
target 'DimmiTests' do
end
target 'DimmiUITests' do
end
XLForm 库不依赖于任何其他库或框架。另外,我尝试手动安装它,但没有成功。
【问题讨论】:
-
你应该考虑使用 Eureka,因为那是 XLForms 的 Swift 版本。
-
实际上我在使用 Eureka 时遇到了更严重的问题,我一将它添加到我的项目中,它就不再编译了。
标签: swift xcode firebase xlform