Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include dSYM file of an embedded framework to an app archive

My app uses some 3rd party framework. I have a framework itself and dSYM file for it.

When archiving my app, the archive does not contain the dSYM file for this framework. It contains other dSYM files for ther frameworks that're included via Cocoa Pods and built alongside with my app.

I'm using HockeyApp for app distribution, so I'm uploading my app IPA and dSYMs archive to it. But because of lacking of this exact dSYM for this exact framework, I can't see all stack trace in crash reports.

So The question: How can I kindly ask Xcode to copy dSYM file for the framework? Should I do this manually via script during archiving?

like image 834
DoN1cK Avatar asked Jun 20 '18 11:06

DoN1cK


People also ask

How do I upload a dSYM file?

Upload the dSYM File to AppDynamics Using the UI From the Mobile App menu, click Configuration. Click Mobile App Configuration >. From dSYM Mappings, click Upload dSYM package file for iOS crashes. From the XCode dSYM package upload dialog, click Choose File.

What is app dSYM file?

A dSYM file is an ELF file that contains DWARF (debugging with attributed record formats) debug information for your application. DWARF is a debugging file format that supports source-level debugging.


1 Answers

If you have pre-built frameworks you need to add the dSYM files generated at build time to your Xcode project and add a new "Copy Files Phase" to your target's Build phases in order to end up with them in the Xcode archive.

An example of adding the dSYM files for the Realm framework would look like the screenshot below.

Make sure you select the "Products Directory" destination and the "Copy only when installing" option.

Copy Files Phase

Now, when archiving your target the dSYMS will appear in the right directory.

like image 121
Jessedc Avatar answered Nov 15 '22 22:11

Jessedc