Flutter app not opening on Xcode(macOS) although working in Windows for android

My flutter app is not working for macOS development , at first it was showing that Xcode 12.4 does not support the current flutter version so i reduced the version and all the packages version to required but now its still not running, now it does not gives any error but automatically loses connection to device before built gets completed. The default flutter app runs perfectly.

Flutter doctor :

[✓] Flutter (Channel unknown, 2.0.0, on Mac OS X 10.15.7 19H524 darwin-x64, locale en-IN)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed
instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdk to update to that location.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] Connected device (2 available)

I can not use upgraded flutter version as my mac does not support the Xcode 12.5+

have you tried running flutter doctor/flutter run from the Mac terminal?

Flutter is not an Apple product. All third party framework implementors shoud post all relevant questions to the respective support forums for those frameworks: Please goto https://github.com/flutter

Flutter app not opening on Xcode(macOS) although working in Windows for android
 
 
Q