firemonkeyc++builder-10.2-tokyo

.dSYM file for iOS release build (firemonkey)


I deployed my app and submitted to Apple store. It was rejected and they said it crashed on launch. In the Rad Studio deployment window a .dSYM file is shown and it has a weird Remote Path. What is a .dSYM file for? It seems .dSYM has to do with debugging - do i just leave it out?

It is the first file in the list below.

image

UPDATE: After getting squared away on how to make sure the .dSYM file is created (and where) I now have this deployment window below. I'm still not sure about that Remote Path. Does this mean the .dSYM will be installed on the device?

image


Solution

  • What is a .dSYM file for?

    This is covered in Embarcadero's documentation:

    dSYM Debug File (*.dSYM)

    When you build a project for iOS Device - 32 bit or iOS Device - 64 bit, RAD Studio generates a dSYM debug file if:

    • In Delphi, you enable the Debug information option in Project > Options > Delphi Compiler > Linking.
    • In C++, you enable the Full debug information option in Project > Options > C++ Linker.

    Note: Packages (Delphi) do not generate dSYM debug files.

    When you build your project, your dSYM debug file is generated by default as <project>.dsym into C:\Users\<user>\Documents\Embarcadero\Studio\Projects\<project>\<platform>\<build configuration>.

    To change the output directory:

    • In Delphi, use the Output directory option in Project > Options > Delphi Compiler.
    • In C++, use the Final output directory option in Project > Options > C++ (Shared Options).

    You should keep a copy of the .dsym file for each version of your app that you submit to Apple's App Store. If you get a crash report from Apple, the .dsym file for that version of the app is needed to "symbolicate" the crash report to help you debug the crash:

    Understanding and Analyzing Application Crash Reports