dd-sdk-ios icon indicating copy to clipboard operation
dd-sdk-ios copied to clipboard

Xcode16: Symbol not found when using Cocoapods

Open lukas-koblmueller opened this issue 1 year ago • 2 comments

Stack trace

dyld[78821]: Symbol not found: __ZN5swift34swift50override_conformsToProtocolEPKNS_14TargetMetadataINS_9InProcessEEEPKNS_24TargetProtocolDescriptorIS1_EEPFPKNS_18TargetWitnessTableIS1_EES4_S8_E Expected in: /Frameworks/DatadogInternal.framework/DatadogInternal

Reproduction steps

  1. Use Xcode 16.0
  2. Implement Datadog via Cocoapods
  3. Run on device

Volume

All

Affected SDK versions

2.17.0

Latest working SDK version

Does the crash manifest in the latest SDK version?

Yes

Deployment Target

12.0 or 13.0

Device Information

No response

Other relevant information

Adding the post-install hook: post_install do |installer| installer.pods_project.targets.each do |target| if ['DatadogRUM', 'DatadogCore', 'DatadogInternal'].include? target.name target.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end end fixes this issue on Xcode15, but not on Xcode16 anymore.

lukas-koblmueller avatar Sep 23 '24 09:09 lukas-koblmueller