I lately encountered a difficulty with my Flutter software on iOS. When I attempt to run the appliance, I get the next error message:
Couldn't construct the precompiled software for the machine.
Swift Compiler Error (Xcode): No such module 'Flutter'
/Customers/victorpelle/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.1/ios/url_launcher_ios/Sources/url_launcher_ios/messages.g.swift:9:9
Swift Compiler Error (Xcode): No such module 'Flutter'
/Customers/victorpelle/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/darwin/path_provider_foundation/Sources/path_provider_foundation/messages.g.swift:9:9
Uncategorized (Xcode): Command SwiftEmitModule failed with a nonzero exit code
Error launching software on eziopelle’s iPhone.
I’ve already tried a number of issues:
flutter clear
flutter pub get
pod set up
pod replace
I’ve additionally closed Xcode, tried deleting my Podfile.lock
, however nothing appears to work.
Right here’s my launcher:
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this supply code is ruled by a BSD-style license that may be
// discovered within the LICENSE file.
import UIKit
/// Protocol for UIApplication strategies referring to launching URLs.
///
/// This protocol exists to permit injecting an alternate implementation for testing.
protocol Launcher {
/// Returns a Boolean worth that signifies whether or not an app is out there to deal with a URL scheme.
func canOpenURL(_ url: URL) -> Bool
/// Makes an attempt to asynchronously open the useful resource on the specified URL.
func open(
_ url: URL,
choices: [UIApplication.OpenExternalURLOptionsKey: Any],
completionHandler completion: ((Bool) -> Void)?)
}
/// Launcher is deliberately a direct passthroguh to UIApplication.
extension UIApplication: Launcher {}
Are you able to please assist me resolve this error?