Cannot find 'CapacitorCookieManager' in scope

I’ve built an ionic capacitor app and exported to XCode. When I try to build the app in XCode I get this error

Cannot find ‘CapacitorCookieManager’ in scope

Using “@capacitor/ios”: “4.4.0”,
@ionic/angular”: “6.2.6”,
Latest version of Angular

It builds for Android ok, I’ve submitted the app to Google Play fine.

I’ve not modified anything capacitor related, just created the app build and copied to ios to run the build process in xcode.

any pointers where to start troubleshooting would be appreciated.

fixed by running
cap sync ios

I was only using
cap copy ios

noob issue I guess