Mac低系统版本下,能否在Android Studio中运行iOS模拟器?
Short answer: No, you can’t run the iOS Simulator directly within Android Studio on your Mac right now, and your outdated system version (below Mojave/Catalina) is the core issue here. Let’s break down the reasons and share practical workarounds:
Why this isn’t possible right now
- iOS Simulator is tied to Xcode: Apple’s iOS Simulator is exclusive to Xcode, and it relies entirely on Xcode’s toolchain to function. Android Studio doesn’t include its own iOS emulator—it can only call Xcode’s Simulator if you have Xcode installed and configured properly.
- Xcode requires a minimum OS version: Even the oldest Xcode versions that support iOS Simulator demand at least macOS Mojave (for Xcode 10+) or High Sierra (for Xcode 9). Since your system isn’t upgraded to Mojave/Catalina, you can’t install any Xcode version that includes a functional iOS Simulator.
Practical Workarounds to Test Your Dart/Flutter App
1. Upgrade your Mac’s OS (most straightforward fix)
If your Mac hardware supports it, upgrade to macOS Mojave or Catalina. Once done:
- Install the matching Xcode version (Xcode 10 for Mojave, Xcode 12+ for Catalina)
- Open Android Studio, navigate to
Preferences > Languages & Frameworks > Flutter > iOSand set the Xcode path - You’ll then be able to select iOS Simulators directly from Android Studio’s device dropdown, or use the command
flutter runto launch your app on the simulator.
Just remember to back up your data first—some older apps might not be compatible with newer macOS versions.
2. Use an online iOS simulator service
Browser-based platforms let you run iOS simulations without installing Xcode or upgrading your system. You can upload your Dart/Flutter app build (or connect your project directly in some cases) and test it on a virtual iOS device. Note that free tiers often have limits on session length or device availability.
3. Test on a physical iOS device
If you have access to a friend’s or colleague’s iPhone/iPad:
- Enable Developer Mode on the device (go to
Settings > Privacy & Security > Developer Modefor iOS 16+, orSettings > General > Profiles & Device Managementfor older versions) - Connect the device to your Mac via USB
- In Android Studio, select the physical iOS device from the device dropdown, or run
flutter run -d <device-id>(get the device ID with theflutter devicescommand) - You don’t need Xcode’s simulator for this—just sign up for a free Apple Developer account to enable app installation on the device.
4. Check if your Mac can run High Sierra (for older Xcode)
If upgrading to Mojave/Catalina isn’t an option, verify if your Mac supports macOS High Sierra. If it does, you can install Xcode 9, which includes an older iOS Simulator (supporting up to iOS 11). This isn’t ideal for testing modern iOS features, but it’s a way to get basic iOS testing working without a newer OS.
内容的提问来源于stack exchange,提问作者Nippon Sherchan

