你们可能都知道Firebase进行了版本跳跃,我正在尝试让我的设置与 Xcode Playground 一起工作。
有一个引用如何使用旧版本的 Cocoapods 和 Ruby 在 Playground 中实现 Firebase,但这对我来说并不适用 swift playground for experimenting with firebase .尽管项目中的 Firebase 实现本身工作正常并且我可以导入我的 Firebase,但它不再适用于 Playground。
有人知道如何使用 Playground 和 Firebase 添加工作设置吗?
正在使用的软件:
- 椰子类动物:2.6.4
- 广告连播:1.0
- Xcode:7.3.1
- 火力地堡:3.2.0
这里对我有什么帮助或线索吗?
最佳答案
我创建了一个框架,然后导入到我的 Playground 中。确保在 Podfile 中正确定位框架:
target 'YourApp' do
pod 'Firebase/Core'
target 'YourAppFramework' do
end
end
构建框架后导入:
import AppFramework
import FirebaseCore
除了与 Auth 相关的功能外,大多数功能都可以使用。
关于xcode - Swift 中的 Playground 不会使用 Firebase,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37361320/