Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter "The native debug symbols contain an invalid directory __MACOSX" when uploading debug symbols to Google Play Console

I'm trying to upload my bundle Flutter app to Google Play from my Mac, but I'm getting a warning about adding "debug symbols":

This App Bundle contains native code, and you've not uploaded debug symbols. We recommend you upload a symbol file to make your crashes and ANRs easier to analyze and debug.

According to this answer, I need to zip the three folders and upload it as a "debug symbols".

However, I'm getting the above error when trying to upload the compressed files:

The native debug symbols contain an invalid directory __MACOSX. Only Android ABIs are supported.

What is the problem? What should I do?

like image 714
genericUser Avatar asked Nov 17 '25 23:11

genericUser


2 Answers

I have solved the issue by deleting all __MACOSX folders from my zip.

After compressing your arm64-v8a, armeabi-v7a and x86_64 folders, run the above command to get rid of the Mac __MACOSX files:

zip -d Archive.zip "__MACOSX*"

Then you can upload the .zip symbol file to Google Play Console.

like image 200
genericUser Avatar answered Nov 20 '25 15:11

genericUser


When you compress folders using MacOS Archive utility than it will include _MACOSX file as well, so there are two ways to handle the situation:

1- Delete _MACOSX folder that is hidden.

2- Download WinZip and Compress using it.

like image 44
Umair Khan Avatar answered Nov 20 '25 13:11

Umair Khan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!