简体   繁体   English

使用Xamarian从Visual Studio启动iOS模拟器

[英]Launch iOS simulator from Visual Studio with Xamarian

How can I launch an iOS simulator from Visual Studio? 如何从Visual Studio启动iOS模拟器? I'm working on Windows but have Visual Studio connected to my mac so I can develop a cross platform app. 我在Windows上工作,但已将Visual Studio连接到我的Mac,因此可以开发跨平台应用程序。

I can successfully launch the iOS app to the iPad that is plugged into the Mac but can't figure out how to launch a simulator (I just want to test everything is loading good on different screens). 我可以在插入Mac的iPad上成功启动iOS应用程序,但不知道如何启动模拟器(我只是想测试在不同屏幕上加载的一切是否正常)。 When I set my Solution Platform to iPhoneSimulator and my startup project to myApp.iOS and click start I get the error message... Please select a valid device before running the application. 当我将我的Solution Platform设置为iPhoneSimulator并将我的startup projectmyApp.iOS并单击“开始”时,我收到错误消息... Please select a valid device before running the application.

On the Mac open a terminal and enter: ps -eax Xamarin Get the pid of the IDB.exe process Kill it: Kill 123456 (Replace 123456 with the pid) Wait a few seconds, vs drop down should fill. 在Mac上,打开一个终端,然后输入:ps -eax Xamarin获取IDB.exe进程的pid杀死它:Kill 123456(用pid替换123456)等待几秒钟,vs下拉列表应该会填满。

Up vote if it worked. 如果可行,请进行投票。

Ran into the same problem after I'd just installed the iOS simulator for Windows VS; 我刚为Windows VS安装iOS模拟器后遇到了同样的问题; restarted VS and the networked Mac and the drop-down filled. 重新启动了VS,联网的Mac和下拉列表被填充。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 适用于Apache Cordova / Visual Studio 2015的工具无法在IOS模拟器中启动应用程序 - Tools for Apache Cordova/Visual Studio 2015 fails to launch app in IOS simulator 拦截来自 Visual Studio xamarin for mac / iOS 模拟器的 web 流量 - intercept web traffic from visual studio xamarin for mac / iOS simulator 没有iOS模拟器或设备出现在Visual Studio中 - No iOS simulator or device appear on Visual Studio 如何在 Visual Studio for Mac 上更改 iOS 模拟器 - How to change iOS simulator on Visual Studio for Mac Xamarin Visual Studio ios 模拟器不工作 - Xamarin Visual Studio ios simulator not working 在Windows 8上,是否可以从Visual Studio 2017在ios模拟器中运行Cordova应用程序 - Is there a way to Run Cordova app in ios simulator from visual studio 2017 on my windows 8 Visual Studio 2017(Windows)无法显示Mac上所有可用的ios模拟器设备 - visual studio 2017 (windows) not displaying all available ios simulator devices from mac visual studio 2022在mac上安装monoframework 6.12.0.174,然后iOS模拟器失败 - visual studio 2022 installs monoframework 6.12.0.174 on mac, then iOS Simulator fails iOS模拟器或运行设备Visual Studio 2015 Apache Cordova - IOS Simulator or Run device visual studio 2015 apache cordova Visual Studio 如何选择启动哪个 iOS 模拟器? - How does Visual Studio choose which iOS simulator to start?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM