XCode Capacitor Errors when trying to use a Cordova Plugin in my Project

This is my system info:

Ionic:

   Ionic CLI       : 6.12.1 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework : @ionic/react 7.0.12

Capacitor:

   Capacitor CLI   : 5.0.5
   @capacitor/core : 5.0.5

Utility:

   cordova-res (update available: 0.15.4) : 0.14.0
   native-run                             : 1.7.2

System:

   NodeJS : v16.20.0 (/Users/username/.nvm/versions/node/v16.20.0/bin/node)
   npm    : 8.19.4
   OS     : macOS Catalina

I keep getting errors in CapacitorBridge.swift and WebViewDelegationHandler.swift.

Any ideas on what may be causing the errors?

What’s you Xcode version?
Capacitor 5 requires Xcode 14.1 or newer