无法构build模块Firebase

我一直在尝试将Firebase分析连接到Objective C / Swift项目中。 我已经按照说明正确。 我的searchpath已设置。 我的链接器标志设置为-ObjC。 我可以让项目正确编译。 一旦我@import Firebase和构build,我得到一个错误,说不能构buildFirebase模块。 当我查看日志时,发现构buildFirebase分析和Firebase Core存在parsing问题。 我已经把这个连接到另外三个项目中,没有使用cocoa豆荚。 请指教。

我遇到过这个问题,想尽一切办法:

- (Checked that I was actually using .xcworkspace instead of .xcproj) - Deleted Derived Data - Cleaned Pods folder, deleted Podfile.lock, pod deintegrate and pod install / update again - Deleted cached file everywhere on my mac (including hidden folders in Library/Caches/Cocoapods), /var/folders etc. - Deleted the project, uninstalled Xcode, reinstalled, cloned again etc. - Check all Build Settings in Xcode, desperately tried all options 

没有工作。

唯一的解决scheme(和正确的)是运行一个sudo gem install cocoapods1.2.01.2.1

事实上,你可以看到,在1.2.1的更新日志中,有这个拉取请求修复了供应商框架的导入问题

TL; DR如果您正在运行cocoapods 1.2.0,您将需要运行sudo gem install cocoapods并确保至less运行1.2.1。

您可以通过在terminal上的任何位置inputpod --version来检查您的版本。