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

[Crashlytics] Xcode16 missing dSYM in Firebase #14054

Open
dustin2023 opened this issue Nov 8, 2024 · 18 comments
Open

[Crashlytics] Xcode16 missing dSYM in Firebase #14054

dustin2023 opened this issue Nov 8, 2024 · 18 comments

Comments

@dustin2023
Copy link

dustin2023 commented Nov 8, 2024

Description

Issue Description

This is related to issues #13543 and #13764.

The problem is that when building the application with Debug mode on Xcode 16.1, the dSYM files fail to upload to Crashlytics.
It worked in latest Xcode 15 version.

The workaround is to disable Debug Dylib Support in the target's Build Settings. However, this causes SwiftUI previews to stop working.

Reproducing the issue

  1. Set ENABLE_DEBUG_DYLIB=YES for build options
  2. Build the application in Xcode 16.1

Firebase SDK Version

11.4.0

Xcode Version

16.1

Installation Method

Swift Package Manager

Firebase Product(s)

Crashlytics

Targeted Platforms

iOS

Relevant Log Output

11.4.0 - [FirebaseCrashlytics][I-CLS000000] [Firebase/Crashlytics] Packaged report with id '67cba1a19d7b4800a514f208856ed765' for submission
11.4.0 - [FirebaseCrashlytics][I-CLS000000] Submitting report async
11.4.0 - [FirebaseCrashlytics][I-CLS000000] [Crashlytics:Crash:Reports:Event] Sending app_exception event to Firebase Analytics for crash-free statistics
11.4.0 - [FirebaseCrashlytics][I-CLS000000] Completed report submission with id: 67cba1a19d7b4800a514f208856ed765

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@dustin2023 dustin2023 changed the title [Crashlytics] Xcode16 missing dSYM [Crashlytics] Xcode16 missing dSYM in Firebase Nov 8, 2024
@jclardy
Copy link

jclardy commented Nov 11, 2024

I'm also experiencing this issue on the same setup, Xcode 16.1, Firebase 11.4.0. For now I have a separate previews target for development.

@MichaelVerdon
Copy link

Does this issue come up when using the latest version 11.5.0?

@dustin2023
Copy link
Author

Does this issue come up when using the latest version 11.5.0?

Sadly, yes. I get the some error and also I figured out that I also get this Warning:
warning: (arm64) /Users/dustin/Library/Developer/Xcode/DerivedData/MyAppName-cicejndcecececfe/Build/Products/Debug-iphonesimulator/MyAppName.app/ MyAppName empty dSYM file detected, dSYM was created with an executable with no debug info.

@rizafran
Copy link
Contributor

Thanks for reporting. I tried setting the ENABLE_DEBUG_DYLIB to YES, but I was able to upload the dSYMs in the Crashlytics dashboard, and I'm using Xcode 16.1 to reproduce the issue. May I know if you're encountering any error when uploading the dSYMs?

@MichaelVerdon
Copy link

I have reliably been able to reproduce this error achieving the same warning and have been investigating it. Using XCode 16.1 and the current version. No errors come up but the exact same warning comes up after running a test app.

@themiswang
Copy link
Contributor

themiswang commented Nov 14, 2024

The warning seems like is from XCode/lldb compiler rather than Crashlytics (https://lldb.llvm.org/cpp_reference/SymbolFileDWARF_8cpp_source.html line655). This is probably something on Apple side, Crashlytics only consumes dSYM which is generated from Xcode. Related conversation on Apple side: https://developer.apple.com/forums/thread/761589?answerId=806733022#806733022

@dustin2023
Copy link
Author

The warning seems like is from XCode/lldb compiler rather than Crashlytics (https://lldb.llvm.org/cpp_reference/SymbolFileDWARF_8cpp_source.html line655). This is probably something on Apple side, Crashlytics only consumes dSYM which is generated from Xcode. Related conversation on Apple side: https://developer.apple.com/forums/thread/761589?answerId=806733022#806733022

I opened a new post for this: https://developer.apple.com/forums/thread/768802
Maybe they have a solution. I will share it here as well.

@Harikarthyk
Copy link

+1

3 similar comments
@CtrlJone
Copy link

+1

@grantespo
Copy link

+1

@danielshaffer
Copy link

+1

@alexanderkhitev
Copy link

Hello! Any news/updates?

@girishw
Copy link

girishw commented Nov 22, 2024

+1 Maybe related to this ? https://developer.apple.com/forums/thread/761589?answerId=806733022#806733022

@BartoszCichecki
Copy link

BartoszCichecki commented Nov 25, 2024

+1

I literally just started working on a new app. Xcode 16.1 followed configuration, builds correctly. After test crash, there is "Missing dSYM" warning in Firebase console.

Don't know what more info is needed, but script says:

Running upload-symbols in Build Phase mode
Validating build environment for Crashlytics...
Validation succeeded. Symbol uploading will proceed in the background.

so it looks like run thinks everything is ok.

@themiswang
Copy link
Contributor

One thing I realized after update to xcode 16.1 my test app build setting for Debug information format debug mode is changed to DWARF instead of DWARF with dSYM file. Can you double check the build setting and try it again? So far I cannot reproduce the issue using latest version of Firebase SDK. I also gonna send an issue to Feedback Assistance this week regarding with the warning.

@BartoszCichecki
Copy link

BartoszCichecki commented Nov 26, 2024

For me, it's a brand new project created with Xcode 16.1. I checked project file in text editor to make sure DWARF with dSYM file is selected. All other settings in Firebase guide here are correct. Yet, I get both the warning about empty dSYM is there, AND most importantly, dsyms are not uplaoded - console warns about missing dSYM.

Here is a redacted pbxproj with app name/teams removed (extension changed to txt so that github accepts the file):
project.txt

@BartoszCichecki
Copy link

BartoszCichecki commented Nov 27, 2024

I tried setting "Enable Debug Dylib Support" to "No", and I confirm - upload start working, but it breaks SwiftUI previews. What is more dSYMs that where uploaded to Firebase are missing version number.

Screenshot 2024-11-27 at 22 44 05

I dont know what is happening here, but it's time to take this more seriously and start being more active here guys.

PS: behaviour is the same with Xcode 16.2 beta 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests