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

-[FIRInstanceIDTokenInfo isFreshWithIID:]: unrecognized selector sent to instance 0x280bd0c40 #4315

Closed
wasim954 opened this issue Nov 14, 2019 · 31 comments

Comments

@wasim954
Copy link

wasim954 commented Nov 14, 2019

Environment

  • Xcode version: 11.2
  • Firebase SDK version: 6.12.0
  • Firebase Component: Auth, RemoteConfig
  • Component version: Firebase/Auth (6.12.0) , Firebase/RemoteConfig (6.12.0)

Problem

App get crash with massage

-[FIRInstanceIDTokenInfo isFreshWithIID:]: unrecognized selector sent to instance 0x280bd0c40

Steps to reproduce

App runs correctly at first time(after deleting), as i run app second time app get crashed with massage
-[FIRInstanceIDTokenInfo isFreshWithIID:]: unrecognized selector sent to instance 0x280bd0c40

Consol Logs

2019-11-14 16:51:53.299079+0530 MyApp[45044:402034] -[FIRInstanceIDTokenInfo isFreshWithIID:]: unrecognized selector sent to instance 0x60000214ff80
2019-11-14 16:51:56.995973+0530 MyApp[45044:402034] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FIRInstanceIDTokenInfo isFreshWithIID:]: unrecognized selector sent to instance 0x60000214ff80'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff23c4f02e __exceptionPreprocess + 350
	1   libobjc.A.dylib                     0x00007fff50b97b20 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff23c6ff94 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x00007fff23c53dac ___forwarding___ + 1436
	4   CoreFoundation                      0x00007fff23c55f38 _CF_forwarding_prep_0 + 120
	5   MyApp                            0x00000001072e29fe -[FIRInstanceIDTokenManager checkTokenRefreshPolicyWithIID:] + 526
	6   MyApp                            0x00000001072c6782 -[FIRInstanceID didCompleteConfigure] + 242
	7   MyApp                            0x00000001072c665c -[FIRInstanceID configureInstanceIDWithOptions:] + 380
	8   MyApp                            0x00000001072c646e __37+[FIRInstanceID componentsToRegister]_block_invoke + 414
	9  MyApp                            0x00000001072b7cbe -[FIRComponentContainer instantiateInstanceForProtocol:withBlock:] + 126
	10  MyApp                            0x00000001072b7f7f -[FIRComponentContainer instanceForProtocol:] + 367
	11  MyApp                            0x00000001072b7ae8 -[FIRComponentContainer instantiateEagerComponents] + 456
	12  MyApp                            0x00000001072b1d2a +[FIRApp configureWithName:options:] + 1258
	13  MyApp                            0x00000001072b16ff +[FIRApp configureWithOptions:] + 143
	14  MyApp                            0x00000001072b1655 +[FIRApp configure] + 165
	15  MyApp                           0x0000000106fbf641 $s8MyApp11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0k6LaunchJ3KeyaypGSgtF + 1825
	16  MyApp                            0x00000001070d5446 $s8MyApp0aB11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0k6LaunchJ3KeyaypGSgtF + 1078
	17  MyApp                            0x00000001070d6634 $s8MyApp0aB11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0k6LaunchJ3KeyaypGSgtFTo + 212
	18  UIKitCore                           0x00007fff478467a8 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 232
	19  UIKitCore                           0x00007fff478481b7 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3980
	20  UIKitCore                           0x00007fff4784dd06 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1281
	21  UIKitCore                           0x00007fff46f843e9 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122
	22  UIKitCore                           0x00007fff47471c01 _UIScenePerformActionsWithLifecycleActionMask + 83
	23  UIKitCore                           0x00007fff46f84efb __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198
	24  UIKitCore                           0x00007fff46f8490a -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 296
	25  UIKitCore                           0x00007fff46f84d28 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 818
	26  UIKitCore                           0x00007fff46f845bd -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 345
	27  UIKitCore                           0x00007fff46f88beb __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 178
	28  UIKitCore                           0x00007fff473976bb +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 865
	29  UIKitCore                           0x00007fff4749053f _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 240
	30  UIKitCore                           0x00007fff46f88906 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 153
	31  UIKitCore                           0x00007fff47490442 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 84
	32  UIKitCore                           0x00007fff46f88774 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 381
	33  UIKitCore                           0x00007fff46ddf143 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 657
	34  UIKitCore                           0x00007fff46dddcc8 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 248
	35  UIKitCore                           0x00007fff46ddee6d -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 210
	36  UIKitCore                           0x00007fff4784c363 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 535
	37  UIKitCore                           0x00007fff473b922d -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
	38  FrontBoardServices                  0x00007fff36555225 -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 442
	39  FrontBoardServices                  0x00007fff3657b598 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.154 + 102
	40  FrontBoardServices                  0x00007fff3655fd05 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 220
	41  FrontBoardServices                  0x00007fff3657b229 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 355
	42  libdispatch.dylib                   0x000000010aba0d48 _dispatch_client_callout + 8
	43  libdispatch.dylib                   0x000000010aba3cb9 _dispatch_block_invoke_direct + 300
	44  FrontBoardServices                  0x00007fff365a143e __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
	45  FrontBoardServices                  0x00007fff365a112c -[FBSSerialQueue _queue_performNextIfPossible] + 441
	46  FrontBoardServices                  0x00007fff365a163b -[FBSSerialQueue _performNextFromRunLoopSource] + 22
	47  CoreFoundation                      0x00007fff23bb2221 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
	48  CoreFoundation                      0x00007fff23bb214c __CFRunLoopDoSource0 + 76
	49  CoreFoundation                      0x00007fff23bb1924 __CFRunLoopDoSources0 + 180
	50  CoreFoundation                      0x00007fff23bac62f __CFRunLoopRun + 1263
	51  CoreFoundation                      0x00007fff23babe16 CFRunLoopRunSpecific + 438
	52  GraphicsServices                    0x00007fff38438bb0 GSEventRunModal + 65
	53  UIKitCore                           0x00007fff4784fb68 UIApplicationMain + 1621
	54  MyApp                            0x00000001070da68b main + 75
	55  libdyld.dylib                       0x00007fff51a1dc25 start + 1
)
2019-11-14 16:51:56.996680+0530 MyApp[45044:402181]  - [Firebase/Analytics][I-ACS023007] Analytics v.60002000 started
libc++abi.dylib: terminating with uncaught exception of type NSException
@google-oss-bot

This comment has been minimized.

@charlotteliang
Copy link
Contributor

@wasim954 Thank you for reaching out, can you also share the stack trace so we can get more info on this. Thanks!

@wasim954
Copy link
Author

@chliangGoogle please find required (stack trace) details below

2019-11-18 19:46:04.014568+0530 MyApp[1098:367129] Stack trace : (
0 ??? 0x00000001082fc960 0x0 + 4432316768
1 MyApp 0x00000001014fdbe0 main + 0
2 CoreFoundation 0x00000001f81a49c8 + 1408
3 CoreFoundation 0x00000001f81a665c _CF_forwarding_prep_0 + 92
4 MyApp 0x00000001017066cc -[FIRInstanceIDTokenManager checkTokenRefreshPolicyWithIID:] + 472
5 MyApp 0x00000001016ebf44 -[FIRInstanceID didCompleteConfigure] + 252
6 MyApp 0x00000001016ebe14 -[FIRInstanceID configureInstanceIDWithOptions:] + 396
7 MyApp 0x00000001016ebc30 __37+[FIRInstanceID componentsToRegister]_block_invoke + 420
8 MyApp 0x00000001016de364 -[FIRComponentContainer instantiateInstanceForProtocol:withBlock:] + 120
9 MyApp 0x00000001016de600 -[FIRComponentContainer instanceForP

@vitalzhu
Copy link

vitalzhu commented Nov 19, 2019

I meet the same problem.
App get crash with massage

macOS version:10.14.6
XCode version:10.3

podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

target 'Unity-iPhone' do
pod 'Firebase/Analytics', '6.6.0'
pod 'Firebase/Messaging', '6.6.0'
end

target 'NSExtension' do
pod 'Firebase/Messaging', '6.6.0'
end

Logs:

app[7432:3159261] -[FIRInstanceIDTokenInfo isFreshWithIID:]: unrecognized selector sent to instance 0x2838ba080
app[7432:3159261] Uncaught exception: NSInvalidArgumentException: -[FIRInstanceIDTokenInfo isFreshWithIID:]: unrecognized selector sent to instance 0x2838ba080
(
	0   CoreFoundation                      0x00000001e457bf90 <redacted> + 256
	1   libobjc.A.dylib                     0x00000001e3774284 objc_exception_throw + 60
	2   CoreFoundation                      0x00000001e448f5e0 <redacted> + 0
	3   CoreFoundation                      0x00000001e45819e4 <redacted> + 1416
	4   CoreFoundation                      0x00000001e4583750 _CF_forwarding_prep_0 + 96
	5   app                           0x000000010472af6c -[FIRInstanceIDTokenManager checkTokenRefreshPolicyWithIID:] + 372
	6   app                           0x000000010471a090 -[FIRInstanceID didCompleteConfigure] + 180
	7   app                           0x0000000104719fc4 -[FIRInstanceID configureInstanceIDWithOptions:] + 304
	8   app                           0x0000000104719e24 __37+[FIRInstanceID componentsToRegister]_block_invoke + 216
	9   app                           0x00000001047114e8 -[FIRComponentContainer instantiateInstanceForProtocol:withBlock:] + 68
	10  app                           0x00000001047113c4 -[FIRComponentContainer populateComponentsFromRegisteredClasses:forApp:] + 836
	11  app                           0x0000000104711054 -[FIRComponentContainer initWithApp:registrants:] + 236
	12  app                           0x000000010470e5e4 -[FIRApp initInstanceWithName:options:] + 260
	13  app                           0x000000010470ddb4 +[FIRApp configureWithName:options:] + 640
	14  app                           0x000000010470da70 +[FIRApp configureWithOptions:] + 100
	15  app                           0x000000010470d9f8 +[FIRApp configure] + 128
	16  app                           0x0000000104706eb8 -[WGAppDelegate configure:] + 84
	17  app                           0x000000010470d408 -[AppsFlyerAppController application:didFinishLaunchingWithOptions:] + 116
	18  UIKitCore                           0x0000000211e46fd0 <redacted> + 416
	19  UIKitCore                           0x0000000211e4877c <redacted> + 3380
	20  UIKitCore                           0x0000000211e4e474 <redacted> + 1568
	21  UIKitCore                           0x00000002116bacec <redacted> + 808
	22  UIKitCore                           0x00000002116c3c8c <redacted> + 168
	23  UIKitCore                           0x00000002116ba94c <redacted> + 252
	24  UIKitCore                           0x00000002116bb330 <redacted> + 1080
	25  UIKitCore                           0x00000002116b92e4 <redacted> + 776
	26  UIKitCore                           0x00000002116b8f8c <redacted> + 460
	27  UIKitCore                           0x00000002116be3dc <redacted> + 224
	28  UIKitCore                           0x00000002116bf3cc _performActionsWithDelayForTransitionContext + 120
	29  UIKitCore                           0x00000002116be290 <redacted> + 260
	30  UIKitCore                           0x00000002116c32d4 <redacted> + 372
	31  UIKitCore                           0x0000000211e4c8a4 <redacted> + 556
	32  UIKitCore                           0x0000000211a1c6dc <redacted> + 376
	33  FrontBoardServices                  0x00000001e6ffd720 <redacted> + 456
	34  FrontBoardServices                  0x00000001e7009070 <redacted> + 284
	35  FrontBoardServices                  0x00000001e7008690 <redacted> + 72
	36  libdispatch.dylib                   0x00000001e3f8030c <redacted> + 20
	37  libdispatch.dylib                   0x00000001e3f838d0 <redacted> + 240
	38  FrontBoardServices                  0x00000001e703f764 <redacted> + 48
	39  FrontBoardServices                  0x00000001e703f3d0 <redacted> + 448
	40  FrontBoardServices                  0x00000001e703fa3c <redacted> + 60
	41  CoreFoundation                      0x00000001e4508a50 <redacted> + 28
	42  CoreFoundation                      0x00000001e45089cc <redacted> + 92
	43  CoreFoundation                      0x00000001e4508284 <redacted> + 180
	44  CoreFoundation                      0x00000001e4502f64 <redacted> + 1032
	45  CoreFoundation                      0x00000001e4502844 CFRunLoopRunSpecific + 452
	46  GraphicsServices                    0x00000001e67b1be8 GSEventRunModal + 104
	47  UIKitCore                           0x0000000211e5031c UIApplicationMain + 216
	48  app                           0x0000000104684710 main + 160
	49  libdyld.dylib                       0x00000001e3fb8020 <redacted> + 4
)
2019-11-19 18:15:54.037980+0800 app[7432:3159261] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FIRInstanceIDTokenInfo isFreshWithIID:]: unrecognized selector sent to instance 0x2838ba080'
*** First throw call stack:
(0x1e457bf78 0x1e3774284 0x1e448f5e0 0x1e45819e4 0x1e4583750 0x10472af6c 0x10471a090 0x104719fc4 0x104719e24 0x1047114e8 0x1047113c4 0x104711054 0x10470e5e4 0x10470ddb4 0x10470da70 0x10470d9f8 0x104706eb8 0x10470d408 0x211e46fd0 0x211e4877c 0x211e4e474 0x2116bacec 0x2116c3c8c 0x2116ba94c 0x2116bb330 0x2116b92e4 0x2116b8f8c 0x2116be3dc 0x2116bf3cc 0x2116be290 0x2116c32d4 0x211e4c8a4 0x211a1c6dc 0x1e6ffd720 0x1e7009070 0x1e7008690 0x1e3f8030c 0x1e3f838d0 0x1e703f764 0x1e703f3d0 0x1e703fa3c 0x1e4508a50 0x1e45089cc 0x1e4508284 0x1e4502f64 0x1e4502844 0x1e67b1be8 0x211e5031c 0x104684710 0x1e3fb8020)
libc++abi.dylib: terminating with uncaught exception of type NSException

@charlotteliang
Copy link
Contributor

@ryanwilson Could this be an initialization issue with InstanceID instance?

@saranjithpk01
Copy link

saranjithpk01 commented Nov 21, 2019

Please anyone add a quick fix for this issue? Really stuck with this issue. From which version we are having this issue?

@ryanwilson
Copy link
Member

Hmm, it shouldn't be. I'm not sure exactly what's going on here. I'm going to try to reproduce it and will report back.

@charlotteliang
Copy link
Contributor

@saranjithpk01 We haven't been able to reproduce yet. If you have a way to reproduce, please let us know as this will helps us figure out the issue quickly.

@vitalzhu
Copy link

@ryanwilson @chliangGoogle I think I resolved this issue,I add the framework which implements the firebase SDK two times,then I removed one of them,It was not crashed.
hope it can help.

@ryanwilson
Copy link
Member

That’s very helpful information, thank you! @wasim954 can you check to make sure you’re only importing the Firebase frameworks once?

@wasim954
Copy link
Author

wasim954 commented Nov 26, 2019

@ryanwilson , @chliangGoogle

I have imported following files

#import <FirebaseCore/FIRApp.h>
#import <FirebaseAnalytics/FirebaseAnalytics.h>
#import <FirebaseRemoteConfig/FirebaseRemoteConfig.h>

please suggest what i need to do?

At least app should not crashed instead it print log of error..

@maksymmalyhin
Copy link
Contributor

The exception -[FIRInstanceIDTokenInfo isFreshWithIID:]: unrecognized selector sent to instance... is quite unusual taking into account that there is no a single commit in the repo where the method -[FIRInstanceIDTokenInfo isFreshWithIID:] is called but is not defined. Having this the only theory for the crash I could come up so far is the following. There may be two different versions of FIRInstanceIDTokenInfo class at the runtime (with and without the method) and the wrong one is used. This may happen e.g. when Firebase is linked by both a dynamic framework and the app itself.

@vitalzhu @wasim954 could you share the following please to understand better your environment:

  • your Podfile.lock file
  • do you use frameworks using Firebase under the hood

@wasim954 Do you also use Unity?

@wasim954
Copy link
Author

@maksymmalyhin @ryanwilson @chliangGoogle

please find required details below

Podfile.lock

PODS:

  • AppAuth (1.2.0):
    • AppAuth/Core (= 1.2.0)
    • AppAuth/ExternalUserAgent (= 1.2.0)
  • AppAuth/Core (1.2.0)
  • AppAuth/ExternalUserAgent (1.2.0)
  • ASJTagsView (1.1)
  • Bolts (1.9.0):
    • Bolts/AppLinks (= 1.9.0)
    • Bolts/Tasks (= 1.9.0)
  • Bolts/AppLinks (1.9.0):
    • Bolts/Tasks
  • Bolts/Tasks (1.9.0)
  • Crashlytics (3.14.0):
    • Fabric (~> 1.10.2)
  • DBManager (0.0.2)
  • Fabric (1.10.2)
  • FBSDKCoreKit (5.11.0):
    • FBSDKCoreKit/Basics (= 5.11.0)
    • FBSDKCoreKit/Core (= 5.11.0)
  • FBSDKCoreKit/Basics (5.11.0)
  • FBSDKCoreKit/Core (5.11.0):
    • FBSDKCoreKit/Basics
  • FBSDKLoginKit (5.11.0):
    • FBSDKLoginKit/Login (= 5.11.0)
  • FBSDKLoginKit/Login (5.11.0):
    • FBSDKCoreKit (~> 5.0)
  • FBSDKShareKit (5.11.0):
    • FBSDKShareKit/Share (= 5.11.0)
  • FBSDKShareKit/Share (5.11.0):
    • FBSDKCoreKit (~> 5.0)
  • Firebase/Auth (6.13.0):
    • Firebase/CoreOnly
    • FirebaseAuth (~> 6.4.0)
  • Firebase/CoreOnly (6.13.0):
    • FirebaseCore (= 6.4.0)
  • Firebase/RemoteConfig (6.13.0):
    • Firebase/CoreOnly
    • FirebaseRemoteConfig (~> 4.4.5)
  • FirebaseABTesting (3.1.2):
    • FirebaseAnalyticsInterop (~> 1.3)
    • FirebaseCore (~> 6.1)
    • Protobuf (>= 3.9.2, ~> 3.9)
  • FirebaseAnalytics (6.1.6):
    • FirebaseCore (~> 6.4)
    • FirebaseInstanceID (~> 4.2)
    • GoogleAppMeasurement (= 6.1.6)
    • GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    • GoogleUtilities/MethodSwizzler (~> 6.0)
    • GoogleUtilities/Network (~> 6.0)
    • "GoogleUtilities/NSData+zlib (~> 6.0)"
    • nanopb (= 0.3.9011)
  • FirebaseAnalyticsInterop (1.4.0)
  • FirebaseAuth (6.4.0):
    • FirebaseAuthInterop (~> 1.0)
    • FirebaseCore (~> 6.2)
    • GoogleUtilities/AppDelegateSwizzler (~> 6.2)
    • GoogleUtilities/Environment (~> 6.2)
    • GTMSessionFetcher/Core (~> 1.1)
  • FirebaseAuthInterop (1.0.0)
  • FirebaseCore (6.4.0):
    • FirebaseCoreDiagnostics (~> 1.0)
    • FirebaseCoreDiagnosticsInterop (~> 1.0)
    • GoogleUtilities/Environment (~> 6.2)
    • GoogleUtilities/Logger (~> 6.2)
  • FirebaseCoreDiagnostics (1.1.1):
    • FirebaseCoreDiagnosticsInterop (~> 1.0)
    • GoogleDataTransportCCTSupport (~> 1.0)
    • GoogleUtilities/Environment (~> 6.2)
    • GoogleUtilities/Logger (~> 6.2)
    • nanopb (~> 0.3.901)
  • FirebaseCoreDiagnosticsInterop (1.1.0)
  • FirebaseInstanceID (4.2.7):
    • FirebaseCore (~> 6.0)
    • GoogleUtilities/Environment (~> 6.0)
    • GoogleUtilities/UserDefaults (~> 6.0)
  • FirebaseRemoteConfig (4.4.5):
    • FirebaseABTesting (~> 3.1)
    • FirebaseAnalyticsInterop (~> 1.4)
    • FirebaseCore (~> 6.2)
    • FirebaseInstanceID (~> 4.2)
    • GoogleUtilities/Environment (~> 6.2)
    • "GoogleUtilities/NSData+zlib (~> 6.2)"
    • Protobuf (>= 3.9.2, ~> 3.9)
  • Flurry-iOS-SDK/FlurrySDK (10.0.2)
  • Google-Mobile-Ads-SDK (7.41.0)
  • GoogleAnalytics (3.17.0)
  • GoogleAppMeasurement (6.1.6):
    • GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    • GoogleUtilities/MethodSwizzler (~> 6.0)
    • GoogleUtilities/Network (~> 6.0)
    • "GoogleUtilities/NSData+zlib (~> 6.0)"
    • nanopb (= 0.3.9011)
  • GoogleDataTransport (3.1.0)
  • GoogleDataTransportCCTSupport (1.2.1):
    • GoogleDataTransport (~> 3.0)
    • nanopb (~> 0.3.901)
  • GoogleIDFASupport (3.14.0)
  • GoogleSignIn (5.0.2):
    • AppAuth (~> 1.2)
    • GTMAppAuth (~> 1.0)
    • GTMSessionFetcher/Core (~> 1.1)
  • GoogleSymbolUtilities (1.1.2)
  • GoogleTagManager (7.1.2):
    • FirebaseAnalytics (~> 6.0)
    • GoogleAnalytics (~> 3.17)
    • GoogleUtilitiesLegacy (~> 1.3)
  • GoogleUtilities/AppDelegateSwizzler (6.3.2):
    • GoogleUtilities/Environment
    • GoogleUtilities/Logger
    • GoogleUtilities/Network
  • GoogleUtilities/Environment (6.3.2)
  • GoogleUtilities/Logger (6.3.2):
    • GoogleUtilities/Environment
  • GoogleUtilities/MethodSwizzler (6.3.2):
    • GoogleUtilities/Logger
  • GoogleUtilities/Network (6.3.2):
    • GoogleUtilities/Logger
    • "GoogleUtilities/NSData+zlib"
    • GoogleUtilities/Reachability
  • "GoogleUtilities/NSData+zlib (6.3.2)"
  • GoogleUtilities/Reachability (6.3.2):
    • GoogleUtilities/Logger
  • GoogleUtilities/UserDefaults (6.3.2):
    • GoogleUtilities/Logger
  • GoogleUtilitiesLegacy (1.3.2):
    • GoogleSymbolUtilities (~> 1.1)
  • GSTheme (0.0.7):
    • MXSegmentedPager
  • GTMAppAuth (1.0.0):
    • AppAuth/Core (~> 1.0)
    • GTMSessionFetcher (~> 1.1)
  • GTMSessionFetcher (1.3.0):
    • GTMSessionFetcher/Full (= 1.3.0)
  • GTMSessionFetcher/Core (1.3.0)
  • GTMSessionFetcher/Full (1.3.0):
    • GTMSessionFetcher/Core (= 1.3.0)
  • HCSStarRatingView (1.4.5)
  • HMSegmentedControl (1.5.3)
  • HPGrowingTextView (1.1)
  • ImageCacheManager (0.0.3):
    • SDWebImage/WebP
  • IQKeyboardManagerSwift (6.5.4)
  • libwebp (1.0.3):
    • libwebp/demux (= 1.0.3)
    • libwebp/mux (= 1.0.3)
    • libwebp/webp (= 1.0.3)
  • libwebp/demux (1.0.3):
    • libwebp/webp
  • libwebp/mux (1.0.3):
    • libwebp/demux
  • libwebp/webp (1.0.3)
  • LocalizationManager (0.0.1)
  • MoEngage-iOS-SDK (4.4.0)
  • MORichNotification (3.0.2)
  • MXPagerView (0.2.1)
  • MXParallaxHeader (0.6.1)
  • MXSegmentedPager (3.3.0):
    • HMSegmentedControl (= 1.5.3)
    • MXPagerView (= 0.2.1)
    • MXParallaxHeader (= 0.6.1)
  • nanopb (0.3.9011):
    • nanopb/decode (= 0.3.9011)
    • nanopb/encode (= 0.3.9011)
  • nanopb/decode (0.3.9011)
  • nanopb/encode (0.3.9011)
  • OALocalizationManager (0.0.1)
  • OANetworkLayer (0.0.2)
  • OASVGKit (0.0.1)
  • OATracker (0.0.4)
  • OAUtility (0.0.9):
    • SVProgressHUD (= 2.1.2)
  • Protobuf (3.10.0)
  • SDWebImage/Core (4.4.7)
  • SDWebImage/WebP (4.4.7):
    • libwebp (< 2.0, >= 0.5)
    • SDWebImage/Core
  • SVProgressHUD (2.1.2)
  • TPKeyboardAvoiding (1.3.3)
  • TrueSDK (0.1.4)
  • XCDYouTubeKit (2.8.2)

DEPENDENCIES:

  • ASJTagsView
  • Bolts
  • Crashlytics
  • DBManager
  • Fabric
  • FBSDKCoreKit
  • FBSDKLoginKit
  • FBSDKShareKit
  • Firebase/Auth
  • Firebase/RemoteConfig
  • Flurry-iOS-SDK/FlurrySDK
  • Google-Mobile-Ads-SDK
  • Google-Mobile-Ads-SDK (= 7.41.0)
  • GoogleIDFASupport
  • GoogleSignIn
  • GoogleTagManager
  • GSTheme
  • HCSStarRatingView (~> 1.4.5)
  • HPGrowingTextView
  • ImageCacheManager
  • IQKeyboardManagerSwift
  • LocalizationManager (= 0.0.1)
  • MoEngage-iOS-SDK
  • MoEngage-iOS-SDK (= 4.4.0)
  • MORichNotification
  • OALocalizationManager
  • OANetworkLayer
  • OASVGKit
  • OATracker
  • OAUtility
  • SVProgressHUD
  • TPKeyboardAvoiding
  • TrueSDK
  • XCDYouTubeKit (~> 2.7)

SPEC REPOS:
https://github.com/CocoaPods/Specs.git:
- AppAuth
- ASJTagsView
- Bolts
- Crashlytics
- Fabric
- FBSDKCoreKit
- FBSDKLoginKit
- FBSDKShareKit
- Firebase
- FirebaseABTesting
- FirebaseAnalytics
- FirebaseAnalyticsInterop
- FirebaseAuth
- FirebaseAuthInterop
- FirebaseCore
- FirebaseCoreDiagnostics
- FirebaseCoreDiagnosticsInterop
- FirebaseInstanceID
- FirebaseRemoteConfig
- Flurry-iOS-SDK
- Google-Mobile-Ads-SDK
- GoogleAnalytics
- GoogleAppMeasurement
- GoogleDataTransport
- GoogleDataTransportCCTSupport
- GoogleIDFASupport
- GoogleSignIn
- GoogleSymbolUtilities
- GoogleTagManager
- GoogleUtilities
- GoogleUtilitiesLegacy
- GTMAppAuth
- GTMSessionFetcher
- HCSStarRatingView
- HMSegmentedControl
- HPGrowingTextView
- IQKeyboardManagerSwift
- libwebp
- MoEngage-iOS-SDK
- MORichNotification
- MXPagerView
- MXParallaxHeader
- MXSegmentedPager
- nanopb
- Protobuf
- SDWebImage
- SVProgressHUD
- TPKeyboardAvoiding
- TrueSDK
- XCDYouTubeKit
"https://[email protected]/girnarsoftware/oneappios.git":
- DBManager
- GSTheme
- ImageCacheManager
- LocalizationManager
- OALocalizationManager
- OANetworkLayer
- OASVGKit
- OATracker
- OAUtility

SPEC CHECKSUMS:
AppAuth: bce82c76043657c99d91e7882e8a9e1a93650cd4
ASJTagsView: fc7526f5d76fd2a07a011b232a03a6d2b0a9dad1
Bolts: ac6567323eac61e203f6a9763667d0f711be34c8
Crashlytics: 540b7e5f5da5a042647227a5e3ac51d85eed06df
DBManager: b31532d697a2c875d187e329aeb24a70626a3c01
Fabric: 706c8b8098fff96c33c0db69cbf81f9c551d0d74
FBSDKCoreKit: 9fbfb5b0022d34861bfa6b79f56f8e2ddcd8170b
FBSDKLoginKit: 0e976e0c91ee69dd5dc69062c095205146f1dd9f
FBSDKShareKit: 6f8781da6fca79fe64830fd3404add0660d9f139
Firebase: 458d109512200d1aca2e1b9b6cf7d68a869a4a46
FirebaseABTesting: 0d10f3cdc3fa00f3f175b5b56c1003c8e888299f
FirebaseAnalytics: 45f36d9c429fc91d206283900ab75390cd05ee8a
FirebaseAnalyticsInterop: d48b6ab67bcf016a05e55b71fc39c61c0cb6b7f3
FirebaseAuth: 7d0f84873926f6648bbd1391a318dfb1a26b5e4f
FirebaseAuthInterop: 0ffa57668be100582bb7643d4fcb7615496c41fc
FirebaseCore: 307ea2508df730c5865334e41965bd9ea344b0e5
FirebaseCoreDiagnostics: af29e43048607588c050889d19204f4d7b758c9f
FirebaseCoreDiagnosticsInterop: e9b1b023157e3a2fc6418b5cb601e79b9af7b3a0
FirebaseInstanceID: ebd2ea79ee38db0cb5f5167b17a0d387e1cc7b6e
FirebaseRemoteConfig: 6ad68503c04701b8d9d709240711bc0bf6edaf94
Flurry-iOS-SDK: 71da0ebf2088b15d8899da71050efc8b33bfd21f
Google-Mobile-Ads-SDK: 101ce89b94fdf60ec64ba7b6e9b9d812dc765936
GoogleAnalytics: f42cc53a87a51fe94334821868d9c8481ff47a7b
GoogleAppMeasurement: dfe55efa543e899d906309eaaac6ca26d249862f
GoogleDataTransport: 67cc56f6280d1bc9d470285e851ec49ee9013dba
GoogleDataTransportCCTSupport: f6ab1962e9dc05ab1fb938b795e5b310209edeec
GoogleIDFASupport: aaf8c10bd429abb1c15349d5252244f5eda8ead1
GoogleSignIn: 7137d297ddc022a7e0aa4619c86d72c909fa7213
GoogleSymbolUtilities: 631ee17048aa5e9ab133470d768ea997a5ef9b96
GoogleTagManager: 1821fef94a9648b63c6c3469077adcba4bff8dee
GoogleUtilities: 547a86735c6f0ee30ad17e94df4fc21f616b71cb
GoogleUtilitiesLegacy: 5501bedec1646bd284286eb5fc9453f7e23a12f4
GSTheme: 2b1ce6dace6947ed16a385420c881e4c1d47f661
GTMAppAuth: 4deac854479704f348309e7b66189e604cf5e01e
GTMSessionFetcher: 43b8b64263023d4f32caa0b40f4c8bfa3c5f36d8
HCSStarRatingView: bff3f89314d3b5013ce826ea11897d3129ff6b8c
HMSegmentedControl: 7c6145afb50f26cec5f3243082f6f12b9f41318f
HPGrowingTextView: 88a716d97fb853bcb08a4a08e4727da17efc9b19
ImageCacheManager: 5efab0beb94bb288b7040e249d97187b4cd9b5ba
IQKeyboardManagerSwift: 2dde0fc70110e8eac7ccce2a46fdbec6a850b414
libwebp: 057912d6d0abfb6357d8bb05c0ea470301f5d61e
LocalizationManager: a18c1999fa8b05ca15baea528f2b7eb2ef965bb9
MoEngage-iOS-SDK: a15cd1439a66ee4ba2986811650eb78437e53592
MORichNotification: c184e154a66f86bc52f21ad2d3ba5c0a89940b03
MXPagerView: ede184b5191b2ed689ccf05a750a9978cce42414
MXParallaxHeader: 858c403532ed933b381556a81ce333d7065ad182
MXSegmentedPager: a35ebaf939e1629f24db3bb26653c1c557362f59
nanopb: 18003b5e52dab79db540fe93fe9579f399bd1ccd
OALocalizationManager: f7ba2a8de580351adae9927bb3545c32b369bf29
OANetworkLayer: 0ad2840944e5e64a6ba5d7ae600c0078d81ab3a3
OASVGKit: 5c0bf4906cac71c2bd1617f7c085744e35e73313
OATracker: b8c114a63160e15c543eea9f10c355784a57143d
OAUtility: a023b7872f362404ec4cceaf2fcbe9004619338c
Protobuf: a4dc852ad69c027ca2166ed287b856697814375b
SDWebImage: c10d14a8883ebd89664f02a422006f66a85c0c5d
SVProgressHUD: c404a55d78acbeb7ebb78b76d3faf986475a6994
TPKeyboardAvoiding: 6dd3fe3268b8f2627beb7ff3d82a3cacbdf66a36
TrueSDK: 4a18db44cc535df8fd8135cf02daeedcc7484249
XCDYouTubeKit: 79baadb0560673a67c771eba45f83e353fd12c1f

PODFILE CHECKSUM: 2fbb093c26f9a4d4c3f65794b3b8e6e8a67738a0

COCOAPODS: 1.8.4

do you use frameworks using Firebase under the hood

we are using Firebase by pod only

Do you also use Unity?
No

@maksymmalyhin
Copy link
Contributor

@wasim954 Thank you for the details, this is really helpful though now I am confused with the crash even more. Does the crash happens 100% times on the second launch for you? Would you be able to share a sample app for us to reproduce the issue locally?

And another idea to double check. Can it be just a broken (for some reason) FirebaseInstanceID code version cached on machine? To validate it you may try to clean Cocoapods cache using pod cache clean --all then checkout your project to a different directory (or maybe just remove Pods directory from your existing one) and run pod install --repo-update or pod update?

@paulb777
Copy link
Member

I wonder if there is an interaction issue between the FirebaseAnalytics and GoogleAnalytics pods?

@alectogeek
Copy link

is there any news? I've got same error on my production app.

 FIRAuthBackend.m line 582
-[FIRAuthBackendRPCIssuerImplementation asyncPostToURLWithRequestConfiguration:URL:body:contentType:completionHandler:] 

@paulb777
Copy link
Member

paulb777 commented Dec 1, 2019

@alectogeek That looks like a different issue, perhaps #3963. If that one doesn't help you, please create another issue with your full backtrace and Podfile.lock contents.

@alectogeek
Copy link

@paulb777 I've opened an issue in flutter_firebase repo, should I open one more here?

@paulb777
Copy link
Member

paulb777 commented Dec 1, 2019

@alectogeek You could. However, it does look like #3963 and we'll likely need more information than was provided there to make progress on it.

@DKolev
Copy link

DKolev commented Dec 6, 2019

Hi there.

I'm having the same issue but the difference is that I'm using React Native Firebase which pulls the relevant dependencies by itself.

The app crashes 100% on every second launch no matter if it's started from Xcode or installed separately from our QAs.

The Firebase related stuff from the Podfile.lock is below:

- Firebase/Core (6.13.0):
    - Firebase/CoreOnly
    - FirebaseAnalytics (= 6.1.6)
  - Firebase/CoreOnly (6.13.0):
    - FirebaseCore (= 6.4.0)
  - Firebase/Performance (6.13.0):
    - Firebase/CoreOnly
    - FirebasePerformance (~> 3.1.7)
  - FirebaseABTesting (3.1.2):
    - FirebaseAnalyticsInterop (~> 1.3)
    - FirebaseCore (~> 6.1)
    - Protobuf (>= 3.9.2, ~> 3.9)
  - FirebaseAnalytics (6.1.6):
    - FirebaseCore (~> 6.4)
    - FirebaseInstanceID (~> 4.2)
    - GoogleAppMeasurement (= 6.1.6)
    - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    - GoogleUtilities/MethodSwizzler (~> 6.0)
    - GoogleUtilities/Network (~> 6.0)
    - "GoogleUtilities/NSData+zlib (~> 6.0)"
    - nanopb (= 0.3.9011)
  - FirebaseAnalyticsInterop (1.4.0)
  - FirebaseCore (6.4.0):
    - FirebaseCoreDiagnostics (~> 1.0)
    - FirebaseCoreDiagnosticsInterop (~> 1.0)
    - GoogleUtilities/Environment (~> 6.2)
    - GoogleUtilities/Logger (~> 6.2)
  - FirebaseCoreDiagnostics (1.1.2):
    - FirebaseCoreDiagnosticsInterop (~> 1.0)
    - GoogleDataTransportCCTSupport (~> 1.0)
    - GoogleUtilities/Environment (~> 6.2)
    - GoogleUtilities/Logger (~> 6.2)
    - nanopb (~> 0.3.901)
  - FirebaseCoreDiagnosticsInterop (1.1.0)
  - FirebaseInstanceID (4.2.7):
    - FirebaseCore (~> 6.0)
    - GoogleUtilities/Environment (~> 6.0)
    - GoogleUtilities/UserDefaults (~> 6.0)
  - FirebasePerformance (3.1.7):
    - FirebaseCore (~> 6.4)
    - FirebaseInstanceID (~> 4.2)
    - FirebaseRemoteConfig (~> 4.4)
    - GoogleToolboxForMac/Logger (~> 2.1)
    - "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
    - GoogleUtilities/Environment (~> 6.2)
    - GoogleUtilities/ISASwizzler (~> 6.2)
    - GoogleUtilities/MethodSwizzler (~> 6.2)
    - GTMSessionFetcher/Core (~> 1.1)
    - Protobuf (~> 3.9)
  - FirebaseRemoteConfig (4.4.5):
    - FirebaseABTesting (~> 3.1)
    - FirebaseAnalyticsInterop (~> 1.4)
    - FirebaseCore (~> 6.2)
    - FirebaseInstanceID (~> 4.2)
    - GoogleUtilities/Environment (~> 6.2)
    - "GoogleUtilities/NSData+zlib (~> 6.2)"
    - Protobuf (>= 3.9.2, ~> 3.9)

@maksymmalyhin
Copy link
Contributor

@DKolev It will be really helpful if you could share an example of the project that we can use to reproduce the issue, so we can investigate it and provide a solution for it.

Could you also answer the following questions please:

  • have you tried to run pod cache clean --all and after pod update?
  • is the issue reproducible when you build from different machines?

@DKolev
Copy link

DKolev commented Dec 10, 2019

@maksymmalyhin Unfortunately, I won't be able to provide an example of the project.

About the questions:

  • yes, I did try with cleaning the pod cache, removing the entire pod directory and installing them again
  • yes, the same is happening on my colleague's MacBook Pro

I'm currently trying to remove some of the libs we include in the project since after React Native 0.60 they are all auto-linked through the Podfile and maybe there is something which in combination with Firebase is producing the problem.

@maksymmalyhin
Copy link
Contributor

@DKolev Thank you for the details and keeping doing investigation on your end. This is very weird issue and I really would like to debug it. I can see the following options to do it:

  1. You may share your entire project with Firebase support and mention my GitHub username so they can provide me access to it.
  2. We may schedule a screen sharing session, so we can do debugging and troubleshooting together.

Will any of these options work for you?

@saranjithpk01
Copy link

I was able to fix the issue by re-adding the framework which uses firebase within.
In my app also we were using firebase. Now my colleague is getting the same issue and not able to find any solutions.

@maksymmalyhin
Copy link
Contributor

@saranjithpk01 I would like to clarify some details of your case. You mentioned a framework that uses Firebase. Is it a dynamic framework?
Currently Firebase doesn't support dynamic frameworks. Firebase SDKs are compiled as static frameworks, so if you try to use them from a dynamic library/framework Firebase will be linked there. It means that there will be Firebase symbols in both your app and your dynamic framework which leads to undefined behaviour.

@saranjithpk01
Copy link

Thanks for the active support.
Unfortunately, I can't tell you whether the framework is static or dynamic, since its from another developer.
May be your assumption will be correct because we tried by removing the framework from app, in that case crash is not happening.

It will be good if there is any way using that you guys can avoid anybody to add Firebase SDK in dynamic libraries.

That would be helpful and never leads to any undefined behaviours.

@google-oss-bot
Copy link

Hey @wasim954. We need more information to resolve this issue but there hasn't been an update in 7 days. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@wasim954 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@maksymmalyhin
Copy link
Contributor

maksymmalyhin commented Jan 10, 2020

We recently encountered a similar "mysterious" crash while testing Firebase binary distribution (b/147490887). The reason of the crash was a missing -ObjC flag in "Other Linker Settings".

It might be also relevant for Cocoapods. Still nobody was able to reproduce this issue but for ones who has it adding the -ObjC flag may be a workaround.

If the issue is still occuring or a workaround/fix found, any additional info on it is appreciated.

@DKolev
Copy link

DKolev commented Jan 24, 2020

Hi, @maksymmalyhin and everybody else.
It's been a while but I had other things to take care of during the holidays and the last several days.
Now I'm back to this issue and after some more debugging and digging, I think I found the core problem (at least in my case).

In our app, we are using also a 3rd party framework which somehow implements Firebase and this is causing issues with my configuration of FirebaseApp shared instance. Here is one of the errors I'm getting which I believe is connected to the actual problem we are discussing here:

objc[34236]: Class FIRApp is implemented in both /private/var/containers/Bundle/Application/C26A1DFA-47A4-4307-87F6-944AC826EC99/MyApp.app/Frameworks/SDKKit.framework/SDKKit (0x106529250) and /private/var/containers/Bundle/Application/C26A1DFA-47A4-4307-87F6-944AC826EC99/MyApp.app/MyApp (0x102620ea8). One of the two will be used. Which one is undefined. objc[34236]: Class FIRAppAssociationRegistration is implemented in both /private/var/containers/Bundle/Application/C26A1DFA-47A4-4307-87F6-944AC826EC99/MyApp.app/Frameworks/SDKKit.framework/SDKKit (0x1065292c8) and /private/var/containers/Bundle/Application/C26A1DFA-47A4-4307-87F6-944AC826EC99/MyApp.app/MyApp (0x102620f20). One of the two will be used. Which one is undefined.

Also, after all this, I'm getting:
2020-01-20 14:26:04.799623+0200 MyApp[34236:5374240] 6.13.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add [FIRApp configure]; (FirebaseApp.configure() in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.

but in my AppDelegate.m I am doing
if ([FIRApp defaultApp] == nil) { [FIRApp configure]; }

I've contacted the devs of this library and I'm still waiting for them to reply but in the meantime do you have any suggestions on how to proceed with this?
The lib is quite important and I can't remove it permanently. But If I try to remove it temporarily, then the issue disappears.

@paulb777
Copy link
Member

Firebase must be linked once into the app. It is not supported to link Firebase separately into a dynamic framework and the app.

We recommend using static library frameworks for any libraries that include Firebase.

@firebase firebase locked and limited conversation to collaborators Jan 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests