在哪里可以找到符号化 iOS 崩溃日志的 .dSYM 文件?Where can I find the .dSYM file to symbolicate iOS crash logs?

使用 Visual Studio for Mac 或 Visual Studio 2017 生成 iOS 应用时,标志崩溃报告所需的 dSYM 文件将与应用项目文件(.csproj)位于同一目录层次结构中。When building an iOS app with Visual Studio for Mac or Visual Studio 2017, the .dSYM file that's needed to symbolicate crash reports will be placed in the same directory hierarchy as your app's project file (.csproj). 具体位置取决于项目的生成设置:The exact location depends on your project's build settings:

  • 如果已启用特定于设备的生成,则可在以下目录中找到 dSYM:If you have enabled device-specific builds, the .dSYM can be found in the following directory:

    <项目目录>/bin/<平台>/<><>-<>/<project directory>/bin/<platform>/<configuration>/device-builds/<device>-<os-version>/

    例如:For example:

    TestApp/bin/iPhone/Release/device-build/iphone 8.4-11.3.1/TestApp/bin/iPhone/Release/device-builds/iphone8.4-11.3.1/

  • 如果尚未启用特定于设备的生成,则可在以下目录中找到 dSYM:If you have not enabled device-specific builds, the .dSYM can be found in the following directory:

    <项目目录>/bin/<平台>/<配置>/<project directory>/bin/<platform>/<configuration>/

    例如:For example:

    TestApp/bin/iPhone/Release/TestApp/bin/iPhone/Release/

备注

作为生成过程的一部分,Visual Studio 2017 将 dSYM 文件从 Mac 生成主机复制到 Windows。As part of the build process, Visual Studio 2017 copies the .dSYM file from the Mac build host to Windows. 如果在 Windows 上看不到 dSYM 文件,请确保已将应用的生成设置配置为创建 ipa 文件If you do not see a .dSYM file on Windows, be sure you have configured your app's build settings to create an .ipa file.

请参阅See also