Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application crash after adding Firebase Performance SDK. #1393

Closed
parth51 opened this issue Jun 11, 2018 · 7 comments
Closed

Application crash after adding Firebase Performance SDK. #1393

parth51 opened this issue Jun 11, 2018 · 7 comments

Comments

@parth51
Copy link

@parth51 parth51 commented Jun 11, 2018

[READ] Step 1: Are you in the right place?

YES

[REQUIRED] Step 2: Describe your environment

  • Xcode version: 9.2
  • Firebase SDK version:5.0.0
  • Firebase Component:
    FacebookCore (0.3.0),
    Firebase (5.0.0),
    FirebaseAnalytics (5.0.0),
    FirebaseCore (5.0.0),
    FirebaseInstanceID (3.0.0),
    FirebasePerformance (2.0.0),
    FirebaseSwizzlingUtilities (2.0.0)

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

The user in iOS 10.3.2 always having a crash while playing with the app after added Performance SDK

Relevant Code:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
let audioSession = AVAudioSession.sharedInstance()
        do {
            try audioSession.setCategory(AVAudioSessionCategoryPlayback)
        } catch {
            print("Setting category to AVAudioSessionCategoryPlayback failed.")
        }
}

Report on Firebase Crash

Crashed: com.apple.root.default-qos
SIGABRT ABORT 0x0000000182145014
-[FIRInstanceIDAuthKeychain itemsMatchingService:account:accessGroup:error:] + 324
-[FIRInstanceIDAuthKeychain itemForService:account:accessGroup:error:] + 92
-[FIRInstanceIDTokenStore tokenInfoWithAuthorizedEntity:scope:] + 268
-[FIRInstanceIDStore tokenInfoWithAuthorizedEntity:scope:] + 136
-[FIRInstanceIDTokenManager cachedTokenInfoWithAuthorizedEntity:scope:] + 100
-[FIRInstanceID cachedTokenIfAvailable] + 104
-[FIRInstanceID token] + 88
-[FIRInstanceID getIDWithHandler:]_block_invoke.154 + 140

@eshiehz
Copy link

@eshiehz eshiehz commented Jun 12, 2018

Thanks for the bug report! We're actively looking into this issue.

@mag10a
Copy link

@mag10a mag10a commented Jul 11, 2018

@paulb777 - Any update on this issue? We are seeing this in our Cordova project and we are using FirebaseInstanceID 2.0.8.

@paulb777
Copy link
Member

@paulb777 paulb777 commented Jul 11, 2018

@mag10a The current FirebaseInstanceID version is 3.1.1. Does that make a difference?

@Gujci
Copy link

@Gujci Gujci commented Jul 16, 2018

I'm having a very similar issue.
My dependencies are:

binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAuthBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebasePerformanceBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseMessagingBinary.json"

These are freshly installed with Carthage 0.29.0.
As soon as the FirebaseApp.configure() is called, I get an error:

+[FIRSwizzler currentImplementationForClass:selector:isClassSelector:]: unrecognized selector sent to class 0x10279f6f8

I thought it might be a linking issue. I have only linked FirebaseSwizzlingUtilities.framework, but adding any other related frameworks, like FirebaseISASwizzler.framework results in a compile-time error.

My current solution is to use the 4.9.0 version.

@paulb777
Copy link
Member

@paulb777 paulb777 commented Jul 16, 2018

@Gujci Try removing Carthage/Build/iOS/FirebaseSwizzlingUtilities.framework. It is no longer part of Firebase 5.4.0. It was split into FirebaseISASwizzler.framework and FirebaseMethodSwizzler.framework.

@Gujci
Copy link

@Gujci Gujci commented Jul 16, 2018

@paulb777 thank you

@morganchen12
Copy link
Contributor

@morganchen12 morganchen12 commented Nov 7, 2018

Closing due to inactivity. If anyone is still experiencing this crash, please comment and I'll reopen.

@firebase firebase locked and limited conversation to collaborators Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
@paulb777 @eshiehz @mag10a @morganchen12 @Gujci @parth51 and others