Configure extension safe framework in Xcode depending on debug or release build

Im following this official guide on how to add an iOS extension to my app Adding iOS app extensions | Flutter . It is written that the the extension safe framework should be different depending on if building for release, profile or debug. Does anyone have experience with configuring this to run in a pipeline?

In the instructions the framework is added by providing the path within the Flutter folder, but then it needs to be manually changed depending on the computer that is building the app. From what I understand it should be possible to configure this by copying and moving the Framework files in either a pre action script or a run script in the build phase, but I can’t find how to link the framework correctly after moving it :thinking: