Firebase崩溃.. iOS Swift [英] Firebase Crash.. iOS Swift

查看:372
本文介绍了Firebase崩溃.. iOS Swift的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Firebase iOS应用程序由于某些原因在cocoapods中必须手动添加框架。



我一直在收到崩溃错误消息:

  2016-06-04 00:48:51.356 NewFirebase [74218:11918327]配置默认的应用程序。 
2016-06-04 00:48:51.401 NewFirebase [74218:11918425] + [NSData gtm_dataByGzippingData:]:无法识别的选择器发送到类0x10bdd8110
2016-06-04 00:48:51.403 NewFirebase [74218 :]< FIRAnalytics / INFO> Firebase Analytics v.3200000开始
2016-06-04 00:48:51.404 NewFirebase [74218:11918425] ***终止应用程序由于未捕获的异常NSInvalidArgumentException,原因:'+ [NSData gtm_dataByGzipping

我已经把firebase的相关内容放在

  func application(application:UIApplication,didFinishLaunchingWithOptions launchOptions:[NSObject:AnyObject]?) - > Bool {
//在应用程序启动后替代自定义点。

FIRApp.configure()


FBSDKApplicationDelegate.sharedInstance()。application(application,
didFinishLaunchingWithOptions:launchOptions)

返回true





$ b其他与facebook相关登录我要把firebase



这些是其中的框架


这就是链接器部分看起来像构建设置


如果您需要更多代码,请随时留言



如果我摆脱 FIRApp.configure()一切正常,因为它应该是..

解决方案

我使用Xcode 7.3.1,在OS X 10.11.5上定位iOS 9.3。



我首先清空了Other Linker Flags中的所有内容,然后将$(OTHER_LDFLAGS)和-ObjC添加为2个单独的项目使用+按钮,当你双击)。

我做的另一件事是删除框架给我的问题 - GoogleUtilities和FirebaseAnalytics。

然后我再次使用添加文件到项目选项将它们添加回来,并确保它们被定位到我的iOS应用程序中。

此后,建立成功,广告显示。


My Firebase iOS App i had to put the frameworks in manually due to some reason in cocoapods.

i have been getting an crash error saying

2016-06-04 00:48:51.356 NewFirebase[74218:11918327] Configuring the default app.
2016-06-04 00:48:51.401 NewFirebase[74218:11918425] +[NSData gtm_dataByGzippingData:]: unrecognized selector sent to class 0x10bdd8110
2016-06-04 00:48:51.403 NewFirebase[74218:] <FIRAnalytics/INFO> Firebase Analytics v.3200000 started
2016-06-04 00:48:51.404 NewFirebase[74218:11918425] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSData gtm_dataByGzipping

The only line i have put related to firebase is

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.

        FIRApp.configure()


        FBSDKApplicationDelegate.sharedInstance().application(application,
                                                              didFinishLaunchingWithOptions: launchOptions)

        return true
    }

other is related to facebook login i am gonna put with firebase

These are the frameworks in it

This is what the linker section looks like in the build settings

Please feel free if you want any more code

if i get rid of FIRApp.configure() Everything works fine as its supposed to be ..

解决方案

I am using Xcode 7.3.1 targeting iOS 9.3 on OS X 10.11.5.

I had the exact same issue as above with the "Undefined symbols" issue.

I first emptied everything from the "Other Linker Flags" and then added $(OTHER_LDFLAGS) and -ObjC as 2 separate items (using the + button when you double click).

The other thing I did was remove the frameworks giving me issues - GoogleUtilities and FirebaseAnalytics.

I then added them back in using the "Add files to Project" option one at a time and ensured they are targeted to my iOS app.

The build was successful after that and ads show up.

这篇关于Firebase崩溃.. iOS Swift的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆