[Appflow/Pro] SWIFT_VERSION cannot be empty in target MyApp

So I’m using Ionic App flow to build my project and distrbute my project and I’m getting this error SWIFT_VERSION cannot be empty in target MyApp

and I’m not sure WHERE to place this, I tried config.xml
<preference name="UseSwiftLanguageVersion" value="5" />