Visual studio VisualStudio如何选择启动哪个iOS模拟器?
我已经安装了Xcode 8.3.3,VisualStudio可以使用它进行编译和模拟 我安装了Xcode 9.0.1,并希望在iPhone X上测试该应用程序,以确保没有任何显示问题 我不想用Xcode 9.0.1编译,我只想使用模拟器Visual studio VisualStudio如何选择启动哪个iOS模拟器?,visual-studio,xamarin,xamarin.ios,ios-simulator,xcode9,Visual Studio,Xamarin,Xamarin.ios,Ios Simulator,Xcode9,我已经安装了Xcode 8.3.3,VisualStudio可以使用它进行编译和模拟 我安装了Xcode 9.0.1,并希望在iPhone X上测试该应用程序,以确保没有任何显示问题 我不想用Xcode 9.0.1编译,我只想使用模拟器 我看不出在Visual Studio for Mac中我在哪里选择了要运行的模拟器。如何配置Visual Studio以启动特定的模拟器?Xamarin直接调用Xcode9中的SimulatorKit.framework与Xcode8中的CoreSimulato
我看不出在Visual Studio for Mac中我在哪里选择了要运行的模拟器。如何配置Visual Studio以启动特定的模拟器?Xamarin直接调用Xcode9中的
SimulatorKit.framework
与Xcode8中的CoreSimulator.framework
,以便在每个受尊重的Xcode捆绑包中启动simulator.app
,并对其进行调用
因此,基本上,您所要求的内容在VS4M IDE中是不可能的,但在cmd行中,它使用的是Xcode工具
您可以使用simctl
(通过xcrun
)运行特定的sim设备,并在其中安装应用程序
捆绑包
获取所有受支持SIM的列表(您需要设备id(GUID):
启动sim卡:
xcrun simctl boot BDC5B693-9957-4034-BEFD-D3545F875DF6
显示启动的sim卡:
open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
xcrun simctl install booted /user/sushi/code/gitlab/iPadProGenomeDNADashboard/iOS/bin/iPhoneSimulator/Debug/device-builds/GenomeDNADashboard.app
在启动的sim卡中安装应用程序包:
open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
xcrun simctl install booted /user/sushi/code/gitlab/iPadProGenomeDNADashboard/iOS/bin/iPhoneSimulator/Debug/device-builds/GenomeDNADashboard.app
这样做可以让您将基于VS4M/Xcode8的应用程序包安装到基于iPhone 8/8s/X/…Xcode9的模拟器中,并测试UI。当然,您不能以这种方式调试它。在活动项目和活动配置旁边应该有一个下拉菜单来选择模拟器/设备dropdowns@Jason该列表中的项目仅限于iPhone7和iPhoned和iOS 10及以下。该列表中没有新的手机型号或iOS版本。您必须使用xcode 9.0.1进行目标设置/编译,才能在设备下拉列表中显示这些模拟器。您可以在“xcode路径”中指定在设置中。当我尝试使用iPhone X设备ID运行时,它表明我需要下载运行时。我可以从xcode 9运行模拟器,因此这似乎不是问题。如果我直接启动模拟器,然后尝试安装应用程序包,则显示
simctl
无法控制它,core模拟器检测到Xcode.app重新定位或CoreSimulatorService版本更改。
我是否需要更新Xcode命令行实用程序(如果需要,将改变8.3.3的使用),或者是否有一些目标可以更改以指向9.0.1版本?@AdamDavis使用Xcode select
您可以在激活的Xcode安装之间切换(我在这个虚拟机上有4个Xcode版本,我来回切换)