Upgrade to Capacitor 7, Error acquiring assertion, iOS entitlements

After upgrading to Capacitor 7 (Angular 16, Ionic 7), app builds fine, browser version works fine, but iOS gets this error:

Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 “((target is not running or doesn’t have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesn’t have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesn’t have entitlement com.apple.developer.web-browser-engine.webcontent))” UserInfo={NSLocalizedFailureReason=((target is not running or doesn’t have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesn’t have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesn’t have entitlement com.apple.developer.web-browser-engine.webcontent))}>

I read about the “+Capabilities” in XCode and found that these “Web Browser Engine X” capabilities are related to the European Union. Our app is only USA based so don’t even think we need these capabilities added. Any ideas?

npm --version
10.9.2

node --version
v22.16.0

ionic --version
7.2.0

Angular CLI: 16.2.16
Node: 22.16.0 (Unsupported)
Package Manager: npm 10.9.2
OS: darwin arm64

Angular: 16.2.12
… animations, common, compiler, compiler-cli, core, forms
… language-service, platform-browser, platform-browser-dynamic
… router

Package Version

@angular-devkit/architect 0.1602.16
@angular-devkit/build-angular 16.2.16
@angular-devkit/core 16.2.16
@angular-devkit/schematics 16.2.16
@angular/cdk 16.2.14
@angular/cli 16.2.16
@schematics/angular 16.2.16
ng-packagr 16.2.3
rxjs 7.8.2
typescript 5.1.6
webpack 5.101.3
zone.js 0.13.3

[SOLVED] – this issue has been solved. In our case, our login pages were using this.platform.is(‘capacitor’) and there is a defect related to the Capacitor 7 update https://github.com/ionic-team/capacitor/issues/7884, the defect exists in Ionic and was fixed in Ionic 8 by looking at this: https://github.com/ionic-team/ionic-framework/pull/30195. Our solution since we are not yet ready to update to Ionic 8 was to change this.platform.is(‘capacitor’) to Capacitor.isNativePlatform().