dd-sdk-flutter
dd-sdk-flutter copied to clipboard
Duplicate interface (iOS)
Describe the bug
The error that I'm having is exactly the same as the iOS related error described on the Datadog troubleshooting page: https://docs.datadoghq.com/real_user_monitoring/mobile_and_tv_monitoring/troubleshooting/flutter/
when trying to run my flutter package I'm getting the error:
Semantic Issue (Xcode): Duplicate interface definition for class 'DatadogSdkPlugin' /Users/filip/Documents/Development/Apps/listing-search-wonen/src/funda.search.apps/listing_search/example/build/ios/Debug-iphonesimulator/datadog_flutter_plugin/datadog_flutter_plugin.framework/Headers/DatadogSdkPlugin.h:6:0 DatadogSdkPlugin.h:6
Modules Issue (Xcode): Definition of 'DatadogSdkPlugin' must be imported from module 'datadog_flutter_plugin.Swift' before it is required /Users/filip/Documents/Development/Apps/listing-search-wonen/src/funda.search.apps/listing_search/example/ios/Runner/GeneratedPluginRegistrant.m:85:3 GeneratedPluginRegistrant.m:85
Could not build the application for the simulator. Error launching application on iPhone 15 Pro.
Reproduction steps
My package has a transitive dependency on the datadog_flutter_plugin. I'm not writing any specific code to use the datadog_flutter_plugin in my package. But just running fvm flutter run results in the error.
SDK logs
No response
Expected behavior
not prevent my flutter package from building successfully on iOS
Affected SDK versions
datadog_flutter_plugin: 2.5.0
Latest working SDK version
below version 2.0
Did you confirm if the latest SDK version fixes the bug?
Yes
Flutter Version
3.19.5
Setup Type
flutter package
Device Information
all iOS simulators and devices
Other relevant information
I've tried the tips from this page: 'Try performing flutter clean && flutter pub get and rebuilding. This usually resolves the issue.' But this doesn't resolve the issue for me.