flutter Simulator doesn't work on android studio but works through Xcode
i got a brief solution to my question.
after running the following commands one by one:
flutter clean
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
flutter pub get
cd ios
pod install
arch -x86_64 pod install (On an M1 mac use => arch -x86_64 pod install)
here if you get UTF-8 error then run this command
export LC_ALL=en_US.UTF-8
and run arch -x86_64 pod install (On an M1 mac use => arch -x86_64 pod install)
command again.
finally runflutter run
command to start the simulator
Flutter: Projetc not building on iOS Simulator
May be this is a solution:
See 「build settings」 on XCode and change 「Supported platforms: iphoneos」 to 「Supported platforms: iOS」.
Flutter can't connect to iOS simulator
Open Xcode and go to preferences - > locations - > Command Line Tools and select Xcode 10 or above
Related Topics
How to Implement Localization in Swift Ui
What Is the Impact of the "Requires Full Screen" Option in Xcode for an Iphone-Only App
Drawing Gradient Over Image in iOS
(iOS + Storekit) How to Detect When I'm in the Sandbox
Schedule Number of Local Notifications
Move Gmsmarker on Google Map Like Uber
How to Access iOS Private APIs in Swift
Autosizing Cells: Cell Width Equal to the Collectionview
How to Use iOS Speech Recognition in Offline Mode
Swift: Save Video from Nsurl to User Camera Roll
Import Framework in Swift Project, Xcode
How to Animate an Svg Path in iOS
Are There Any Analogues of [Nsstring Stringwithformat:] for Nsattributedstring
How to Detect a Dual Core CPU on iOS
To Change the Color of Unselected Uitabbar Icon in iOS 7