dd-sdk-ios
dd-sdk-ios copied to clipboard
Xcode16: Symbol not found when using Cocoapods
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
- Use Xcode 16.0
- Implement Datadog via Cocoapods
- 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.