-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Crash file marker to indicate that a crash has occurred not working #5393
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
Comments
Potentially related to some of the issues that @samedson was investigating. |
Hey thanks for reaching out. Could you share an xcode project or code that crashes that reproduces this? |
Hey @SayaliMalekar. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 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! |
Application code is same as https://github.com/firebase/quickstart-ios/tree/master/crashlytics. My build script: Investigation is that https://github.com/firebase/firebase-ios-sdk/blob/master/Crashlytics/Crashlytics/FIRCrashlytics.m#L133 is always false. I have tested this on Crashlytics 4.0.0, Xcode 11.3 Also crash is not reported immediately on console. My requirement is to check if app was crash in previous application launch. Tried following code :
|
@SayaliMalekar what target platform are you running on (simulator, device, iOS version)? Are you able to see any file writing errors in the device's logs? |
Hi,
This issue can reproduce in following case :
|
Are you seeing duplicate class definition warnings in console when running your app? |
Can see following logs:
By setting crashlytics.setCrashlyticsCollectionEnabled(false) does not solve the problem. |
@SayaliMalekar The "undefined" log is indicative of two copies of Crashlytics in the app. It should be restructured so Crashlytics is not linked twice. |
By restructuring the code solved my issue. Will there be a work around to decide which Crashlytics to be in use? @paulb777 @morganchen12 @samedson Thank you for listening and helping to solve the issue. |
It is not really possible to work around the duplicate class definitions at runtime issue in the SDK code itself, since it results in undefined behavior. Please let us know if you have any more questions and we'll continue to answer them in this thread. Thanks! |
In the next major Firebase release, we're planning to remove the |
Uh oh!
There was an error while loading. Please reload this page.
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
Api Crashlytics.crashlytics().didCrashDuringPreviousExecution() is not working.
Steps to reproduce:
Application requirement is to check if app had crashed for previous app launch.
Steps:
In this I was expecting api should return true.
Observation is that FIRCLSCreateCrashedMarkerFile(); is not called
Relevant Code:
The text was updated successfully, but these errors were encountered: