When trying to start the app on one of the simulators of XCode (e.g. IPhone8) the app won’t build.
There is a build error in App->App->AppDelegate.swift Line 2 (“import Capacitor”).
The error says “Could not find module ‘Capacitor’ for target ‘x86_64-apple-ios-simulator’; found: arm64, arm64-apple-ios-simulator”.
It works perfect when using an actual device.
It seems like I am missing something obvious. Could anybody point me in the right direction?
Ionic Info:
Ionic:
   Ionic CLI                     : 6.13.1 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.5.1
   @angular-devkit/build-angular : 0.1002.0
   @angular-devkit/schematics    : 10.0.8
   @angular/cli                  : 10.2.0
   @ionic/angular-toolkit        : 2.3.3
Capacitor:
   Capacitor CLI   : 2.4.6
   @capacitor/core : 2.4.6
Cordova:
   Cordova CLI       : not installed
   Cordova Platforms : not available
   Cordova Plugins   : not available
Utility:
   cordova-res : 0.15.3
   native-run  : not installed
System:
   ios-sim : 8.0.2
   NodeJS  : v12.21.0 (/usr/local/bin/node)
   npm     : 6.14.11
   OS      : macOS Big Sur
   Xcode   : Xcode 12.5.1 Build version 12E507