title: Xcode 13.3.1 Problem after updating Simulator "No such module"
body: <p>This is the problem that is displayed in my screen</p>
  <pre><code>*Launching lib/main.dart on iPhone 13 in debug mode...
  Automatically signing iOS for device deployment using specified development team in Xcode project: U39MW8579G
  Xcode build done.                                           20.7s
  Failed to build iOS app
  Error output from Xcode build:
  ↳
      objc[15751]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x21c339eb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c84f8). One of the two will be used. Which one is undefined.
      objc[15751]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x21c339f00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c8548). One of the two will be used. Which one is undefined.
      objc[15751]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x21c339f50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c8598). One of the two will be used. Which one is undefined.
      objc[15751]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x21c339fa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c85e8). One of the two will be used. Which one is undefined.
      objc[15751]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x21c339ff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c8638). One of the two will be used. Which one is undefined.
      objc[15751]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x21c33a040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065c8688). One of the two will be used. Which one is undefined.
      2022-05-18 00:21:30.270 xcodebuild[15751:144850] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
      2022-05-18 00:21:30.271 xcodebuild[15751:144850] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
      ** BUILD FAILED **
  Xcode's output:
  ↳
      Writing result bundle at path:
          /var/folders/3x/qxdf5rsj4c71yp16yqblsc640000gn/T/flutter_tools.k4uQNy/flutter_ios_build_temp_dirSO7Zep/temporary_xcresult_bundle
  /Users/sebastiangonzalez/Documents/flutter_setup/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-5.0.0+4/ios/Classes/FlutterLocalNotificationsPlugin.m:515:52: warning: 'cancelLocalNotification:' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's -[UNUserNotificationCenter removePendingNotificationRequestsWithIdentifiers:] [-Wdeprecated-declarations]
                      [[UIApplication sharedApplication] cancelLocalNotification:localNotification];
                                                         ^
      In module 'UIKit' imported from /Users/sebastiangonzalez/Documents/trabajo/dandy_refactor/second/dandy-mobile-app/ios/Pods/Target Support Files/flutter_local_notifications/flutter_local_notifications-prefix.pch:2:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:240:1: note: 'cancelLocalNotification:' has been explicitly marked deprecated here
      - (void)cancelLocalNotification:(UILocalNotification *)notification API_DEPRECATED(&quot;Use UserNotifications Framework's -[UNUserNotificationCenter removePendingNotificationRequestsWithIdentifiers:]&quot;, ios(4.0, 10.0)) API_UNAVAILABLE(tvos);
      ^
  /Users/sebastiangonzalez/Documents/flutter_setup/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-5.0.0+4/ios/Classes/FlutterLocalNotificationsPlugin.m:529:44: warning: 'cancelAllLocalNotifications' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's -[UNUserNotificationCenter removeAllPendingNotificationRequests] [-Wdeprecated-declarations]
              [[UIApplication sharedApplication] cancelAllLocalNotifications];
                                                 ^
      In module 'UIKit' imported from /Users/sebastiangonzalez/Documents/trabajo/dandy_refactor/second/dandy-mobile-app/ios/Pods/Target Support Files/flutter_local_notifications/flutter_local_notifications-prefix.pch:2:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:241:1: note: 'cancelAllLocalNotifications' has been explicitly marked deprecated here
      - (void)cancelAllLocalNotifications API_DEPRECATED(&quot;Use UserNotifications Framework's -[UNUserNotificationCenter removeAllPendingNotificationRequests]&quot;, ios(4.0, 10.0)) API_UNAVAILABLE(tvos);
      ^
  /Users/sebastiangonzalez/Documents/flutter_setup/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-5.0.0+4/ios/Classes/FlutterLocalNotificationsPlugin.m:741:9: warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest [-Wdeprecated-declarations]
              UILocalNotification *launchNotification = (UILocalNotification *)[launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
              ^
      In module 'UIKit' imported from /Users/sebastiangonzalez/Documents/trabajo/dandy_refactor/second/dandy-mobile-app/ios/Pods/Target Support Files/flutter_local_notifications/flutter_local_notifications-prefix.pch:2:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h:18:12: note: 'UILocalNotification' has been explicitly marked deprecated here
      @interface UILocalNotification : NSObject&lt;NSCopying, NSCoding&gt;
                 ^
  /Users/sebastiangonzalez/Documents/flutter_setup/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-5.0.0+4/ios/Classes/FlutterLocalNotificationsPlugin.m:741:52: warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest [-Wdeprecated-declarations]
              UILocalNotification *launchNotification = (UILocalNotification *)[launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
                                                         ^
      In module 'UIKit' imported from /Users/sebastiangonzalez/Documents/trabajo/dandy_refactor/second/dandy-mobile-app/ios/Pods/Target Support Files/flutter_local_notifications/flutter_local_notifications-prefix.pch:2:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h:18:12: note: 'UILocalNotification' has been explicitly marked deprecated here
      @interface UILocalNotification : NSObject&lt;NSCopying, NSCoding&gt;
                 ^
  /Users/sebastiangonzalez/Documents/flutter_setup/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-5.0.0+4/ios/Classes/FlutterLocalNotificationsPlugin.m:741:102: warning: 'UIApplicationLaunchOptionsLocalNotificationKey' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:] [-Wdeprecated-declarations]
              UILocalNotification *launchNotification = (UILocalNotification *)[launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
                                                                                            ^
      In module 'UIKit' imported from /Users/sebastiangonzalez/Documents/trabajo/dandy_refactor/second/dandy-mobile-app/ios/Pods/Target Support Files/flutter_local_notifications/flutter_local_notifications-prefix.pch:2:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:513:50: note: 'UIApplicationLaunchOptionsLocalNotificationKey' has been explicitly marked deprecated here
      UIKIT_EXTERN UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsLocalNotificationKey     NS_SWIFT_NAME(localNotification) API_DEPRECATED(&quot;Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]&quot;, ios(4.0, 10.0)) API_UNAVAILABLE(tvos); // userInfo contains a UILocalNotification
                                                       ^
  /Users/sebastiangonzalez/Documents/flutter_setup/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-5.0.0+4/ios/Classes/FlutterLocalNotificationsPlugin.m:751:1: warning: implementing deprecated method [-Wdeprecated-implementations]
      - (void)application:(UIApplication*)application
      ^
  In module 'Flutter' imported from /Users/sebastiangonzalez/Documents/flutter_setup/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-5.0.0+4/ios/Classes/FlutterLocalNotificationsPlugin.h:1:
      /Users/sebastiangonzalez/Documents/flutter_setup/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-arm64_armv7/Flutter.framework/Headers/FlutterPlugin.h:104:1: note: method 'application:didReceiveLocalNotification:' declared here
      - (void)application:(UIApplication*)application
      ^
      35 warnings generated.
  : Error: Expected a String, but got 'UIKit'.
      import UIKit
             ^^^^^
  : Error: Expected ';' after this.
      import UIKit
      ^^^^^^
  : Error: Expected an identifier, but got 'import'.
      Try inserting an identifier before 'import'.
      import Flutter
      ^^^^^^
  : Error: Expected ';' after this.
      import UIKit
             ^^^^^
  : Error: Directives must appear before any declarations.
      Try moving the directive before any declarations.
      import Flutter
      ^^^^^^
  : Error: Expected a String, but got 'Flutter'.
      import Flutter
             ^^^^^^^
  : Error: Expected ';' after this.
      import Flutter
      ^^^^^^
  : Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
      Try adding the name of the type of the variable or the keyword 'var'.
      import Flutter
             ^^^^^^^
  : Error: Expected ';' after this.
      import Flutter
             ^^^^^^^
  : Error: A class declaration must have a body, even if it is empty.
      Try adding an empty body.
      @objc class AppDelegate: FlutterAppDelegate {
                  ^^^^^^^^^^^
  : Error: Expected a declaration, but got ':'.
      @objc class AppDelegate: FlutterAppDelegate {
                             ^
  : Error: A function declaration needs an explicit list of parameters.
      Try adding a parameter list to the function declaration.
      @objc class AppDelegate: FlutterAppDelegate {
                               ^^^^^^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        MethodChannel methodChannel =
        ^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        MethodChannel methodChannel =
        ^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        MethodChannel methodChannel =
        ^^^^^^^^^^^^^
  : Error: Type 'UIKit' not found.
      import UIKit
             ^^^^^
  : Error: Type 'MethodChannel' not found.
        static const MethodChannel navigation = OptionalMethodChannel(
                     ^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        static const MethodChannel platform = OptionalMethodChannel(
                     ^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        static const MethodChannel textInput = OptionalMethodChannel(
                     ^^^^^^^^^^^^^
  : Error: Type 'BasicMessageChannel' not found.
        static const BasicMessageChannel&lt;Object?&gt; keyEvent = BasicMessageChannel&lt;Object?&gt;(
                     ^^^^^^^^^^^^^^^^^^^
  : Error: Expected 0 type arguments.
        static const BasicMessageChannel&lt;Object?&gt; keyEvent = BasicMessageChannel&lt;Object?&gt;(
                     ^
  : Error: Type 'BasicMessageChannel' not found.
        static const BasicMessageChannel&lt;String?&gt; lifecycle = BasicMessageChannel&lt;String?&gt;(
                     ^^^^^^^^^^^^^^^^^^^
  : Error: Expected 0 type arguments.
        static const BasicMessageChannel&lt;String?&gt; lifecycle = BasicMessageChannel&lt;String?&gt;(
                     ^
  : Error: Type 'BasicMessageChannel' not found.
        static const BasicMessageChannel&lt;Object?&gt; system = BasicMessageChannel&lt;Object?&gt;(
                     ^^^^^^^^^^^^^^^^^^^
  : Error: Expected 0 type arguments.
        static const BasicMessageChannel&lt;Object?&gt; system = BasicMessageChannel&lt;Object?&gt;(
                     ^
  : Error: Type 'BasicMessageChannel' not found.
        static const BasicMessageChannel&lt;Object?&gt; accessibility = BasicMessageChannel&lt;Object?&gt;(
                     ^^^^^^^^^^^^^^^^^^^
  : Error: Expected 0 type arguments.
        static const BasicMessageChannel&lt;Object?&gt; accessibility = BasicMessageChannel&lt;Object?&gt;(
                     ^
  : Error: Type 'MethodChannel' not found.
        static const MethodChannel platform_views = MethodChannel(
                     ^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        static const MethodChannel skia = MethodChannel(
                     ^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        static const MethodChannel mouseCursor = OptionalMethodChannel(
                     ^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        static const MethodChannel restoration = OptionalMethodChannel(
                     ^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        static const MethodChannel deferredComponent = OptionalMethodChannel(
                     ^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        static const MethodChannel localization = OptionalMethodChannel(
                     ^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        static void setChannel(MethodChannel newChannel) {
                               ^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        late MethodChannel _channel;
             ^^^^^^^^^^^^^
  : Error: Type 'MethodChannel' not found.
        MethodChannel methodChannel =
        ^^^^^^^^^^^^^
  : Error: Undefined name 'UIApplicationMain'.
      @UIApplicationMain
       ^^^^^^^^^^^^^^^^^
  : Error: This can't be used as an annotation; an annotation should be a reference to a compile-time constant variable, or a call to a constant constructor.
      @UIApplicationMain
       ^
  : Error: Undefined name 'objc'.
      @objc class AppDelegate: FlutterAppDelegate {
       ^^^^
  : Error: This can't be used as an annotation; an annotation should be a reference to a compile-time constant variable, or a call to a constant constructor.
      @objc class AppDelegate: FlutterAppDelegate {
       ^
  : Error: Method not found: 'OptionalMethodChannel'.
        static const MethodChannel navigation = OptionalMethodChannel(
                                                ^^^^^^^^^^^^^^^^^^^^^
  : Error: Method not found: 'OptionalMethodChannel'.
        static const MethodChannel platform = OptionalMethodChannel(
                                              ^^^^^^^^^^^^^^^^^^^^^
  : Error: Method not found: 'OptionalMethodChannel'.
        static const MethodChannel textInput = OptionalMethodChannel(
                                               ^^^^^^^^^^^^^^^^^^^^^
  : Error: Method not found: 'BasicMessageChannel'.
        static const BasicMessageChannel&lt;Object?&gt; keyEvent = BasicMessageChannel&lt;Object?&gt;(
                                                             ^^^^^^^^^^^^^^^^^^^
  : Error: Method not found: 'BasicMessageChannel'.
        static const BasicMessageChannel&lt;String?&gt; lifecycle = BasicMessageChannel&lt;String?&gt;(
                                                              ^^^^^^^^^^^^^^^^^^^
  : Error: Method not found: 'BasicMessageChannel'.
        static const BasicMessageChannel&lt;Object?&gt; system = BasicMessageChannel&lt;Object?&gt;(
                                                           ^^^^^^^^^^^^^^^^^^^
  : Error: Method not found: 'BasicMessageChannel'.
        static const BasicMessageChannel&lt;Object?&gt; accessibility = BasicMessageChannel&lt;Object?&gt;(
                                                                  ^^^^^^^^^^^^^^^^^^^
  : Error: Method not found: 'MethodChannel'.
        static const MethodChannel platform_views = MethodChannel(
                                                    ^^^^^^^^^^^^^
  : Error: Method not found: 'MethodChannel'.
        static const MethodChannel skia = MethodChannel(
                                          ^^^^^^^^^^^^^
  : Error: Method not found: 'OptionalMethodChannel'.
        static const MethodChannel mouseCursor = OptionalMethodChannel(
                                                 ^^^^^^^^^^^^^^^^^^^^^
  : Error: Method not found: 'OptionalMethodChannel'.
        static const MethodChannel restoration = OptionalMethodChannel(
                                                 ^^^^^^^^^^^^^^^^^^^^^
  : Error: Method not found: 'OptionalMethodChannel'.
        static const MethodChannel deferredComponent = OptionalMethodChannel(
                                                       ^^^^^^^^^^^^^^^^^^^^^
  : Error: Method not found: 'OptionalMethodChannel'.
        static const MethodChannel localization = OptionalMethodChannel(
                                                  ^^^^^^^^^^^^^^^^^^^^^
  : Error: 'MethodChannel' isn't a type.
        MethodChannel methodChannel =
        ^^^^^^^^^^^^^
  : Error: Couldn't find constructor 'MethodChannel'.
            const MethodChannel('plugins.flutter.io/path_provider_android');
                  ^^^^^^^^^^^^^
  : Error: 'MethodChannel' isn't a type.
        MethodChannel methodChannel =
        ^^^^^^^^^^^^^
  : Error: Couldn't find constructor 'MethodChannel'.
            const MethodChannel('plugins.flutter.io/path_provider_ios');
                  ^^^^^^^^^^^^^
  : Error: 'MethodChannel' isn't a type.
        MethodChannel methodChannel =
        ^^^^^^^^^^^^^
  : Error: Couldn't find constructor 'MethodChannel'.
            const MethodChannel('plugins.flutter.io/path_provider_macos');
                  ^^^^^^^^^^^^^
  : Error: 'override' isn't a type.
        override func application(
        ^^^^^^^^
  : Error: Expected ';' after this.
        override func application(
                 ^^^^
  : Error: Expected ',' before this.
          _ application: UIApplication,
            ^^^^^^^^^^^
  : Error: Undefined name 'UIApplication'.
          _ application: UIApplication,
                         ^^^^^^^^^^^^^
  : Error: Expected ',' before this.
          didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
                                        ^^^^^^^^^^^^^
  : Error: Undefined name 'UIApplication'.
          didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
                                                        ^^^^^^^^^^^^^
  : Error: Expected ']' before this.
          didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
                                                                                      ^
  : Error: Expected an identifier, but got ')'.
      Try inserting an identifier before ')'.
        ) -&gt; Bool {
        ^
  : Error: Expected ':' before this.
        ) -&gt; Bool {
        ^
  : Error: Undefined name '_'.
          _ application: UIApplication,
          ^
  : Error: Undefined name 'didFinishLaunchingWithOptions'.
          didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  : Error: Expected named argument.
          didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
          ^
  : Error: Method not found: 'application'.
        override func application(
                      ^^^^^^^^^^^
  : Error: Expected an identifier, but got '&gt;'.
      Try inserting an identifier before '&gt;'.
        ) -&gt; Bool {
           ^
  : Error: Undefined name 'Bool'.
        ) -&gt; Bool {
             ^^^^
  : Error: Expected ';' after this.
        ) -&gt; Bool {
             ^^^^
  : Error: 'with' can't be used as an identifier because it's a keyword.
      Try renaming this to be an identifier that isn't a keyword.
          GeneratedPluginRegistrant.register(with: self)
                                             ^^^^
  : Error: Undefined name 'self'.
          GeneratedPluginRegistrant.register(with: self)
                                                   ^^^^
  : Error: Undefined name 'GeneratedPluginRegistrant'.
          GeneratedPluginRegistrant.register(with: self)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  : Error: Expected ';' after this.
          GeneratedPluginRegistrant.register(with: self)
                                                       ^
                  ^^^^^^^^^^^
  : Error: Expected identifier, but got 'super'.
          return super.application(application, didFinishLaunchingWithOptions: launchOptions)
                 ^^^^^
  : Error: Expected ';' after this.
          return super.application(application, didFinishLaunchingWithOptions: launchOptions)
                                                                                            ^
  : Error: 'MethodChannel' isn't a type.
        static const MethodChannel navigation = OptionalMethodChannel(
                     ^^^^^^^^^^^^^
  : Error: 'MethodChannel' isn't a type.
        static const MethodChannel platform = OptionalMethodChannel(
                     ^^^^^^^^^^^^^
  : Error: 'MethodChannel' isn't a type.
        static const MethodChannel textInput = OptionalMethodChannel(
                     ^^^^^^^^^^^^^
  : Error: 'BasicMessageChannel' isn't a type.
        static const BasicMessageChannel&lt;Object?&gt; keyEvent = BasicMessageChannel&lt;Object?&gt;(
                     ^^^^^^^^^^^^^^^^^^^
  : Error: 'BasicMessageChannel' isn't a type.
        static const BasicMessageChannel&lt;String?&gt; lifecycle = BasicMessageChannel&lt;String?&gt;(
                     ^^^^^^^^^^^^^^^^^^^
  : Error: 'BasicMessageChannel' isn't a type.
        static const BasicMessageChannel&lt;Object?&gt; system = BasicMessageChannel&lt;Object?&gt;(
                     ^^^^^^^^^^^^^^^^^^^
  : Error: 'BasicMessageChannel' isn't a type.
        static const BasicMessageChannel&lt;Object?&gt; accessibility = BasicMessageChannel&lt;Object?&gt;(
                     ^^^^^^^^^^^^^^^^^^^
  : Error: 'MethodChannel' isn't a type.
        static const MethodChannel platform_views = MethodChannel(
                     ^^^^^^^^^^^^^
  : Error: 'MethodChannel' isn't a type.
        static const MethodChannel skia = MethodChannel(
                     ^^^^^^^^^^^^^
  : Error: 'MethodChannel' isn't a type.
        static const MethodChannel mouseCursor = OptionalMethodChannel(
                     ^^^^^^^^^^^^^
    
  </code></pre>
  <p>MethodChannel('flutter/service_worker');
  ^^^^^^^^^^^^^
  : Error: Method not found: 'MethodChannel'.
  const MethodChannel methodChannel = MethodChannel('flutter/service_worker');
  ^^^^^^^^^^^^^
  Failed to package /Users/sebastiangonzalez/Documents/trabajo/dandy_refactor/second/dandy-mobile-app.
  Command PhaseScriptExecution failed with a nonzero exit code
  note: Using new build system
  note: Planning
  note: Build preparation complete
  note: Building targets in dependency order
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/firebase_messaging/firebase_messaging.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/flutter_local_notifications/flutter_local_notifications.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/firebase_analytics/firebase_analytics.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/path_provider_ios/path_provider_ios.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/firebase_core/firebase_core.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/nanopb/nanopb.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/google_maps_flutter/google_maps_flutter.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/Pods_Runner.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/AdIdSupport/GoogleAppMeasurementIdentitySupport.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/FirebaseMessaging/FirebaseMessaging.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/GoogleDataTransport/GoogleDataTransport.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/FirebaseInstallations/FirebaseInstallations.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/WithoutAdIdSupport/GoogleAppMeasurement.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/FirebaseAnalytics/AdIdSupport/FirebaseAnalytics.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/PromisesObjC/FBLPromises.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/FirebaseCore/FirebaseCore.framework'
  note: Removed stale file '/Users/sebastiangonzalez/Library/Developer/Xcode/DerivedData/Runner-grkmwieiubhlopdwgnkcaggqjvhf/Build/Products/Debug-iphoneos/GoogleUtilities/GoogleUtilities.framework'
  Result bundle written to path:
  /var/folders/3x/qxdf5rsj4c71yp16yqblsc640000gn/T/flutter_tools.k4uQNy/flutter_ios_build_temp_dirSO7Zep/temporary_xcresult_bundle
  Could not build the precompiled application for the device.
  Error launching application on iPhone 13.
  Exited (sigterm)*</p>
  <p>I had a project running in flutter. I updated Xcode and this happened. I try what is in this link but nothing work:
  <a href="https://developer.apple.com/forums/thread/698628" rel="nofollow noreferrer">https://developer.apple.com/forums/thread/698628</a></p>