On 08/01/2019 13:25, Nikos Chantziaras wrote:
I've uploaded a Qt iOS app to the App Store and am testing it in TestFlight. People are getting a crash which I can't replicate, but I can see it in Xcode. Problem is, the crash trace can't be symbolicated in Xcode. There's no dSYM generated.

So I download the dSYM manually from App Store Connect and put it in the archive. Xcode can now symbolicate, but instead of function names, all I get is a trace where all lines are marked with "#hidden".

According to Apple, if a trace only contains "#hidden" entries, I need to de-obfuscate them using the .bcsymbolmap file that's in the archive. The archive contains no such file.

Is there some problem with Qt and dSYM generation? It seems the qmake generated Xcode project results in a archive builds that lack important debug files?

I'm on Qt 5.12, macOS 10.13 and Xcode 10.1.

Replying to myself here, in case someone hits this on a search.

To get debug symbols when building an archive for uploading to the App Store, you need to manually copy the "<App name>.app.dSYM" directory to the Archive directory prior to uploading.

So first build the archive in Xcode, then find the directory where Xcode stored the archive (should be in ~/Library/Developer/Xcode/Archives/<Date>/<App name and date>.xcarchive), and copy the .app.dSYM directory from the original build directory into the "dSYMs" directory of the archive directory.

It is probably best to disable bitcode generation when building. In the Xcode build settings, search for "bitcode" and set "Enable Bitcode" to "No."

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to