Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

create symbols file for release builds #1234

Closed

Description

@incanus

When we publish binary releases via tags (e.g. [publish ios-v0.2.9]), for performance reasons we build in Release. However we should keep symbols around (is this still a .dSYM for static library builds?) for use in symbolication in test apps. AFAICT, if we publish a Release app with .dSYM that uses a Release of GL without one, the app's crashes' symbols won't exist for GL, just the host app.

Activity

  1. added
    iOS
    on Apr 8, 2015
  2. added this to the iOS Beta 1 milestone on Apr 8, 2015
  3. self-assigned this
    on Apr 29, 2015
  4. incanus commented on May 7, 2015

    @incanus
    ContributorAuthor

    I think we've got symbols in currently? We are generating debug symbols and I don't think they are getting stripped in the product as our test app, for example, includes them in its archives.

    Someone more knowledge than me, or me in a future time after having become more knowledgeable, should probably examine the stuff we're pushing up now (e.g. 0.2.21) and see if it has symbols.

  5. removed their assignment
    on May 7, 2015
  6. incanus commented on May 10, 2015

    @incanus
    ContributorAuthor

    We are in good shape here. Creating builds of our internal app that use the build's libMapboxGL.a creates both an app .dSYM and a separate MapboxGL.framework.dSYM since it's brought in via the CocoaPods framework install method. The presence of these symbols (confirmed with dwarfdump) means that our static library has the symbols in it.

    Examples:

    0x000938d8:     TAG_variable [200]  
                     AT_name( "extent" )
                     AT_type( {0x000938e6} ( const uint16_t ) )
                     AT_decl_file( "/Users/travis/build/mapbox/mapbox-gl-native/src/mbgl/map/annotation.cpp" )
                     AT_decl_line( 100 )
                     AT_const_value( 0x1000 )
    

    And:

    0x00093904:         TAG_class_type [20] *
                         AT_name( "AnnotationManager" )
                         AT_byte_size( 0x64 )
                         AT_decl_file( "src/mbgl/map/annotation.hpp" )
                         AT_decl_line( 26 )
    

    This post brings up the good point that us making our own .dSYM for GL is useless; this needs to come from the host app build process.

    We are 👍.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildiOS

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions