My app always crashes after deploying to Testflight

So, I am creating an iOS app but when I archive successfully and upload it, I get this email from apple saying:

Dear Developer,

We identified one or more issues with a recent delivery for your app, "Arrivee" 1.1 (6). Your delivery was successful, but you may wish to correct the following issues in your next delivery:

**ITMS-90863: Apple silicon Macs support issue** - The app links with libraries that are not present on Mac:

* @rpath/Capacitor.framework/Capacitor
* @rpath/CapacitorApp.framework/CapacitorApp
* @rpath/CapacitorAppLauncher.framework/CapacitorAppLauncher
* @rpath/CapacitorCommunityBackgroundGeolocation.framework/CapacitorCommunityBackgroundGeolocation
* @rpath/CapacitorDevice.framework/CapacitorDevice
* @rpath/CapacitorGeolocation.framework/CapacitorGeolocation
* @rpath/CapacitorKeyboard.framework/CapacitorKeyboard
* @rpath/CapacitorLocalNotifications.framework/CapacitorLocalNotifications
* @rpath/CapacitorNativeSettings.framework/CapacitorNativeSettings
* @rpath/CapacitorPreferences.framework/CapacitorPreferences
* @rpath/CapacitorSplashScreen.framework/CapacitorSplashScreen
* @rpath/CapacitorStatusBar.framework/CapacitorStatusBar
* @rpath/Cordova.framework/Cordova

The app uses symbols that are not present on Mac:

* /System/Library/Frameworks/UIKit.framework/UIKit
  * _OBJC_CLASS_$_UIResponder
  * _OBJC_METACLASS_$_UIResponder
* /usr/lib/libobjc.A.dylib

After you’ve corrected the issues, you can upload a new binary to App Store Connect.

Best regards,

The App Store Team

I have no idea why. Did anyone run into this while developing?
Also, the app crashes instantly when I try to open it.

What are your Xcode and CocoaPods versions?