Tag: 火力

Swift Admob控制台显示模拟器设备ID,但不在iPhone上运行?

我已经在我的项目中实现了Admob,但是我无法为我的iPhone添加testing设备ID。 这里是代码: let request = GADRequest() myAd = GADInterstitial(adUnitID: "ca-app-pub-4411736350819540/1731977668") myAd.delegate = self myAd.load(request) 当我运行应用程序时,我的设备ID没有显示在控制台中,只显示实际的广告而不是testing广告。 它在模拟器中正常工作,并通知我如何添加模拟器ID。 这是在iPhone上运行时来自控制台的反馈 2017-04-20 01:57:57.311 SpaceShip[2798:] <FIRAnalytics/INFO> Firebase Analytics v.3600000 started 2017-04-20 01:57:57.392 SpaceShip[2798:] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled 2017-04-20 01:57:57.398: <FIRInstanceID/WARNING> FIRInstanceID AppDelegate proxy enabled, will swizzle app delegate remote notification handlers. To disable […]

Firebase:FIRApp.configure()一直希望我将其更改为FirebaseApp.configure()

所以我做了一个包含大量额外代码的项目,这样我就可以尝试不同的东西,而且我正在慢慢地将textedit中的文件复制到我的新项目中。 我创build了一个新的Firebase帐户,添加了Google plist文件,初始化并安装了所需的窗格(也将pod文件中的iOS版本更改为10.0)…但仍然希望使用FirebaseApp.configure()而不是FIRApp 。configuration()。 我应该删除整个事情,然后再试一次吗? 我刚刚创build了一个新的Xcode项目,所以如果我现在不得不删除它,那很好。 import UIKit import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? override init() { super.init() } func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { FIRApp.configure() return true } 没有太多的代码写入,但我无法弄清楚会发生什么事情,特别是自从我刚开始新的项目。

无法在Xcode中进行debugging:debugging器中将无法使用此模块的debugging信息

添加Firebase后,无法在Xcode中进行debugging。 你不能用expr执行命令,也没有可查看的variables信息。 Firebase是在没有Cocoapods的情况下使用以下指令进行集成: https ://firebase.google.com/docs/ios/setup#frameworks 这是Xcode在用expr执行命令后显示的内容: warning: Swift error in module Test. Debug info from this module will be unavailable in the debugger. error: in auto-import: failed to get module 'Test' from AST context: error: missing required module 'Firebase' 我们正在使用Swift 3。

当应用程序closures时,Firebase IOS推送通知不起作用

当应用程序closures时,Firebase IOS推送通知不起作用。 我已经按照文档中的所有步骤进行了操作

Firebase无法在真实设备上使用(iOS)

我在iOS应用程序中安装Firebase。 一切工作正常在模拟器上,但在真实的设备上,它不执行/返回查询到我的数据库。 我尝试清理项目,但它不会改变任何东西。 你有解决scheme吗? 编辑:用代码更新 override func viewDidLoad() { super.viewDidLoad() // Setup Firebase self.ref = FIRDatabase.database().reference() self.ref.child("Database").observeEventType(.Value, withBlock: { (snapshot) in if snapshot.exists() { for rest in snapshot.children.allObjects as! [FIRDataSnapshot] { print(rest.value) } } else { } }) { (error) in print(error.localizedDescription) } }

无法在Swift应用中导入Firebase

在尝试学习Firebase时,我遵循了Firebase网站的IOS快速入门部分中的步骤。 我使用Cocoapods并按照logging的步骤进行操作。 但是,“导入Firebase”会导致编译器错误。 我没有看到框架任何地方,但我确实看到Firebase的目标C文件。 通过下载zip文件并将其添加到项目的手动过程,我可以使其工作。 不过,我想了解我做错了什么。

如何让Firebase自动删除超过30分钟的值

我有一个Swift / iOS应用程序来创build/保存这样的数据: buyer_name:“john@gmail.com” seller_name:“tom@gmail.com” 价格:“20.00” 产品:“棒球卡” 时间戳:1498677314931 我正在带时间戳 FIRServerValue.timestamp() 我想创build某种types的超时,按照时间戳删除超过30分钟的Firebase数据。 问题是,我不想直接从应用程序,因为用户可以在技术上5分钟后注销。 我想从其他一些独立的过程来做。 所以,我想知道这是否可以通过Firebase自动完成,或者如果我不得不部署其他应用程序在EC2实例上连续执行此操作,或者有其他方法吗?

Firebase连接pipe理器应只返回一个结果

我在以下位于以下文档: https : //www.firebase.com/docs/ios/guide/offline-capabilities.html#section-connection-state 但是,我的实施和testing: connectionCheck.observeEventType(.Value, withBlock: { snapshot in let connected = snapshot.value as? Bool if connected != nil && connected! { print("Connected") } else { print("Not connected") } }) Xcode中的输出注意到: Not connected Connected 但是,如果我关掉wifi,结果很简单: Not connected 鉴于我希望允许在没有连接的情况下发生并向用户展示操作,我如何确保此Firebase侦听器只返回一次正确的响应?

Swift嵌套查询中的Firebase无法正常工作

我有一个像这样的JSON结构: { "groups" : { "-KAv867tzVgIghmr15CM" : { "author" : "ruben", "name" : "Item A" }, "-KAv87nqLEG1Jtc04Ebn" : { "author" : "ruben", "name" : "Item B" }, "-KAv88yZe8KTfkjAE7In" : { "author" : "ruben", "name" : "Item C" } }, "users" : { "rsenov : { "avatar" : "guest", "email" : "ruben@ruben.com", "groups" : { "-KAv867tzVgIghmr15CM" […]

configuration应用程序时发生Firebase错误 – 无法识别的select器已发送到课程

我在iOS应用中使用Firebase,并且拥有两个独立的Firebase项目,一个用于制作,一个用于开发。 我的两个.plist文件是GoogleService-Info.plist和GoogleService-Info-Dev.plist ,我可以根据“目标” – >“生成设置” – >“其他Swift标志”中设置的标志进行select。 在AppDelegate里面didFinishLaunchingWithOptions : #if DEBUG let buildFor = "DEV" #else let buildFor = "PROD" #endif let firebasePlistFileName = buildFor == "DEV" ? "GoogleService-Info-Dev" : "GoogleService-Info" let firebaseOptions = FIROptions(contentsOfFile: NSBundle.mainBundle().pathForResource(firebasePlistFileName, ofType: "plist")) FIRApp.configureWithOptions(firebaseOptions) // line causing new Firebase error 直到今天,当我遇到另一个Cocoapod项目的问题时,这一直工作得很好。 我认为这发生在我清理Xcode项目或删除Derived Data文件夹时: dyld: Library not loaded: @rpath/OtherPod.framework/OtherPod Referenced from: […]