[英]Xamarin Can't Run iOS App on iPhone Simulator - no support for 386 architecture
I'm using Visual Studio Mac 2017 and attempting to run an app on the iPhone simulator, but the Run button is showing a small "hammer" icon (instead of the usual "play" icon)我正在使用 Visual Studio Mac 2017 并尝试在 iPhone 模拟器上运行应用程序,但运行按钮显示一个小的“锤子”图标(而不是通常的“播放”图标)
Also, all options under the Run menu are greyed out (eg Start Without Debugging, Start Debugging, etc)此外,“运行”菜单下的所有选项均呈灰色显示(例如“不调试启动”、“启动调试”等)
My conclusion is that it's because the simulator requires 386 architecture but this is not listed as a supported architecture: option > iOS Build > Supported Architectures我的结论是,这是因为模拟器需要 386 架构,但这并未列为支持的架构:选项 > iOS 构建 > 支持的架构
I've tried adjusting the SDK, Deployment Target, and Minimum System Version, but unable to see 386 as an architecture option or show the Run button.我已尝试调整 SDK、部署目标和最低系统版本,但无法将 386 视为架构选项或显示运行按钮。
I reckon I'm missing something really simple here, but I can't figure out what.我想我在这里遗漏了一些非常简单的东西,但我不知道是什么。 Any suggestions?有什么建议?
Change the current Platform from iPhone
to iPhoneSimulator
将当前平台从iPhone
更改为iPhoneSimulator
Once iPhoneSimulator
is chosen, the "Supported architectures" will change to x86_64
(also with an option for x86
for older versions of Xamarin.iOS)选择iPhoneSimulator
,“支持的体系结构”将更改为x86_64
(对于旧版本的 Xamarin.iOS,还有一个适用于x86
的选项)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.