VS2017更新后iOS模拟器列表丢失问题求助
Hey there, sorry to hear you're stuck with missing iOS devices/simulators in VS2017 after updating to 15.6.4—let's work through some fixes that usually resolve this sync issue:
Re-establish the Mac Agent connection
Close both Visual Studio 2017 on your PC and Xcode on your Mac completely. Then fire up VS2017 again, head toTools > Options > Xamarin > iOS Settings, click the "Pair to Mac" button, and re-link your Mac. Post-updates, the sync agent often gets stuck, and a fresh connection clears up glitches.Ensure all Xamarin components are in sync
On your PC, open the Visual Studio Installer and check for pending updates for Xamarin.iOS or related mobile development components. Even if VS itself is updated to 15.6.4, dependent tools might lag behind. On your Mac, open Xcode, go toXcode > Preferences > Locations, and confirm the Command Line Tools are set to the latest version matching your Xcode build.Reset the iOS simulator (if simulators are missing)
On your Mac, launch the Simulator app, then go toSimulator > Reset Content and Settings.... Let it finish resetting, restart the simulator, wait 30 seconds, then check if VS2017 picks up the simulators. Corrupted simulator state is a frequent culprit here.Check sync logs for specific errors
On your PC, enable verbose logging for Xamarin: navigate toTools > Options > Xamarin > Loggingand check "Enable verbose logging". Try connecting to your Mac again, then go toHelp > Xamarin > Open Logsto look for errors related to device discovery or simulator sync. Permission issues or mismatched version numbers often show up here.Repair your VS2017 installation
If none of the above works, open the Visual Studio Installer, select your VS2017 instance, click "Modify", then choose "Repair". This fixes any corrupted files that might have been introduced during the update process.
If you can share more details like your Mac's Xcode version, or the Xamarin.iOS versions on both your PC and Mac, that can help pinpoint the issue even faster.
内容的提问来源于stack exchange,提问作者Edd

