Open Volksfeld opened 7 months ago
Hey @Volksfeld, sorry for the long wait and thank you for your feedback.
You are correct, we should grant support for multiple targets in our wizard.
Did you manage to fix your problem by using the workaround you described?
I will keep you posted here as soon as we have a PR!
Describe what happened Beforehand, please let me know if I missed something from the source or if this is a expected behavior!
While configuring the project and running the wizard, I've noticed that the buildPhase "Upload dSYMs to Datadog" was only created for one of the targets. In our app, we have the targets "staging" and "production". In our Podfile, these targets are also targets of our "main" abstract target. I came about this issue out of luck: while reviewing the diffs in the .pbxproj, I noticed that the buildPhase was only delcared in one of the targets (staging).
Steps to reproduce the issue: 📝 Have a React Native project with 2 iOS targets and run the wizard.
Expected behaviour: 📝 All targets should be affected by the wizard.
Actual behaviour: 📝 Only one target was affected by the wizard.
Additional context I've done some tinkering and copied the build phase from one target into the other. I'll add a comment if it works as expected.
Node version v16.20.0 (NVM)
react-native version 0.67.5
@datadog/react-native-wizard version 0.4.0
@datadog/mobile-react-native version ^2.3.2
an explanation of what might cause the bug and/or how it can be fixed This probably happens due to the following snippet from "src/commands/setup/add-xcode-dsyms-build-phase/inject-dsyms-build-phase.ts"
We could have an array of targets and resolve a promise for each of those targets. Something like: