Flutter:Not Connecting to iOS Simulator in Android Studio

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 run
flutter 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」.

Sample Image

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



Leave a reply



Submit