maps icon indicating copy to clipboard operation
maps copied to clipboard

iOS archives have missing dSYMs for Native Mapbox version 11.6.0

Open enlivn opened this issue 1 year ago • 1 comments

Environment

  • Dev OS: OSX Sonoma
  • @rnmapbox/maps version: 10.1.31, Native Mapbox version 11.6.0
  • React Native version: 0.75.3
  • Expo version: N/A (don't use Expo)

Steps to reproduce

  1. Follow integration steps per usual for the library versions noted above
  2. Create and validate an iOS archive

Expected

I see no warnings about missing dSYMs

Actual

image

Things I've tried to fix this:

  • add the Mapbox frameworks to the Link Binary with Libraries in the xcodeproj
  • update the Podfile post-install hooks:
    post_install do |installer|
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf-with-dsym'
        end
      end
    end
    

enlivn avatar Sep 26 '24 17:09 enlivn

Any updates on this issue? I’m experiencing the same problem on Xcode 16.

danidaryaweesh avatar Oct 13 '24 11:10 danidaryaweesh

@danidaryaweesh Sorry, I got sidetracked by stuff and forgot to take a look at this.

I looked into it today and apparently, this is expected behavior at least for MapboxCoreMaps and MapboxCommon. We'll just have to ignore this warning.

Links:

  1. https://github.com/mapbox/mapbox-maps-ios/issues/2233#issuecomment-2383192102
  2. https://github.com/mapbox/mapbox-maps-ios/issues/2229#issuecomment-2320836023

This means neither the

  • dwarf (usually used for debug variants as we don't care about inflating binary size by embedding the debug symbols) NOR
  • the dwarf-with-dsym (usually used for beta and release variants since the binary that ships is smaller as it doesn't have the debug symbols embedded – those get uploaded separately to crashlytics or Embrace or whatever you're using to monitor your application)

values for the build setting DEBUG_INFORMATION_FORMAT will make a difference as far as the Mapbox's native libs are concerned.

said differently, this will NOT help:

# this will NOT help you
if target.name == 'MapboxMaps'
        target.build_configurations.each do |config|
          config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf-with-dsym' # or 'dwarf'
        end
end

enlivn avatar Oct 21 '24 17:10 enlivn

Any updates regarding this ?

rakesh-chandrapal avatar Feb 14 '25 06:02 rakesh-chandrapal

same error here. how to fix this please ? this is only a warning that we can ignore ? my app crash at start in release mode and i cannot fond why

alainib avatar Feb 18 '25 15:02 alainib

I have the same issue . I followed this then the warning was cleared, https://developer.apple.com/forums/thread/763731?page=3

perfecten avatar Mar 01 '25 02:03 perfecten