Flutter app doesn’t run on iOS simulator however runs on Android emulator

0
10
Flutter app doesn’t run on iOS simulator however runs on Android emulator


I’ve simply acquired my first MacBook and am making an attempt to run a Flutter venture utilizing VSCode. The venture runs nice on an Android Emulator however does not on iOS Simulator.

This is the log:

Launching lib/major.dart on iPhone 16 Professional in debug mode...
Xcode construct executed.                                            8.9s
Did not construct iOS app
Uncategorized (Xcode): Command SwiftGeneratePch emitted errors however didn't return a nonzero exit code to point failure

Error (Xcode): no such file or listing: '/Customers/sm-sayedi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation'

Error (Xcode): stat cache file '/Customers/sm-sayedi/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator18.2-22C146-07b28473f605e47e75261259d3ef3b5a.sdkstatcache' not discovered

Error (Xcode): unable to rename momentary '/Customers/sm-sayedi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/1QOPLZ3HJICL2/UIKit-1KHQ7M05IFVXC-026d8a9d.pcm.tmp' to output file '/Customers/sm-sayedi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/1QOPLZ3HJICL2/UIKit-1KHQ7M05IFVXC.pcm': 'No such file or listing'

Error (Xcode): couldn't construct module 'UIKit'
/Customers/sm-sayedi/Tasks/internet/flutter/test_app/construct/ios/Debug-iphonesimulator/Flutter.framework/Headers/FlutterAppDelegate.h:7:8

Error (Xcode): couldn't construct module 'Flutter'
/Customers/sm-sayedi/Tasks/internet/flutter/test_app/ios/Runner/GeneratedPluginRegistrant.h:9:8

Error (Xcode): didn't emit precompiled header '/Customers/sm-sayedi/Library/Developer/Xcode/DerivedData/Runner-chzjlziqevvgrcgaoauskndbtofm/Construct/Intermediates.noindex/PrecompiledHeaders/Runner-Bridging-Header-swift_1OW9P6QJWPL3W-clang_1QOPLZ3HJICL2.pch' for bridging header '/Customers/sm-sayedi/Tasks/internet/flutter/test_app/ios/Runner/Runner-Bridging-Header.h'

Uncategorized (Xcode): Command PrecompileSwiftBridgingHeader emitted errors however didn't return a nonzero exit code to point failure

Swift Compiler Error (Xcode): No such file or listing: '/Customers/sm-sayedi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation'

Swift Compiler Error (Xcode): Stat cache file '/Customers/sm-sayedi/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator18.2-22C146-07b28473f605e47e75261259d3ef3b5a.sdkstatcache' not discovered

Swift Compiler Error (Xcode): Clang importer creation failed

Uncategorized (Xcode): Command SwiftEmitModule failed with a nonzero exit code

Couldn't construct the appliance for the simulator.
Error launching utility on iPhone 16 Professional.

Exited (1).

LEAVE A REPLY

Please enter your comment!
Please enter your name here