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?
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.