Undefined symbol error in Xcode build with Ionic5 and Capacitor

Hi All

I am trying to build my project, its been a month or so since i started Xcode, but now when i compile i am getting the following error

Showing Recent Messages
Undefined symbol: OBJC_CLASS$_CAPPermissionsPlugin. This is the full error i am getting.

I am using Ionic 5 and Capacitor, and this has sprung up all of a sudden,


Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_CAPPermissionsPlugin", referenced from:
      __OBJC_$_CATEGORY_CAPPermissionsPlugin_$_CAPPluginCategory in DefaultPlugins.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)