-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Flutter Module][iOS] Multiple commands produce Datadog.framework #443
Comments
Hi @4rthurmonteiro , Thanks for reporting, I'll look into it. I'm not exactly sure how I can support Option B or C without supplying a completely separate package, since I don't think there's a way for me to exclude the pod dynamically, but maybe I'm just missing some option. Would it be possible to remove the Datadog iOS SDK from the app side, and allow the |
Hi @fuzzybinary I will try remove the Datadog iOS SDK from the app side. |
@fuzzybinary when i removed the Datadog iOS SDK from app side i received this error below: ![]() |
Okay, I'll continue to investigate a fix. |
similar problem flutter/flutter#114692 |
@4rthurmonteiro |
Hi @p-mazhnik I tried deleting Datadog.framework but i received a lot of errors called |
@4rthurmonteiro Main step will be to add pod 'datadog_flutter_plugin', :path => '../flutter_module/.ios/.symlinks/plugins/datadog_flutter_plugin/ios', :inhibit_warnings => true UPD: Note that |
Great! I will test this approach. |
@p-mazhnik i have some problems with this approach. So i followed like you did in flutter/flutter#114692 and worked! How do you distribute your pods? Locally or remotely? |
Hi folks -- is there something Datadog needs to change here or something we should add to our documentation to assist others with this scenario? |
@fuzzybinary i think Option B and C is not possible use the attached aproach. So just add this observation in the example. |
Applications that add Flutter and the datadog_flutter_plugin with already existing instances of the Datadog SDK for iOS generate build time errors when using two of the options for embedding. This documents that those methods are not supported. refs: #443
Closing with new documentation. If there ends up being a workaround we'll open another issue to track documenting the workaround. |
Describe what happened
Include any error message or stack trace if available.
We use a Flutter Module in our native ios app using the xcframeworks, running
flutter build ios-framework ...
. When we implemented the datadog using the attachToExisting approach we had this errorMultiple commands produce Datadog.framework
because in the iOS project the datadog pods are included.Steps to reproduce the issue:
Go to examples/native-hybrid-app and in the flutter module use the Option B ou C from https://docs.flutter.dev/add-to-app/ios/project-setup .
Describe what you expected:
The same result from the Option A from https://docs.flutter.dev/add-to-app/ios/project-setup .
Additional context
The text was updated successfully, but these errors were encountered: