简体   繁体   English

Xamarin 无法在 iPhone 模拟器上运行 iOS 应用程序 - 不支持 386 架构

[英]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.

相关问题 无法在 Xamarin 上运行 iOS 16 模拟器 - Can't run iOS 16 simulator on Xamarin 无法在模拟器上运行ios应用-“选择具有受支持架构的目标位置才能在此设备上运行” - Can't run ios app on simulator - “choose destination with a supported architecture in order to run on this device” 我可以发布没有模拟器(i386)支持的iOS应用吗? - Can I release an iOS app without Simulator (i386) support? 无法在Xcode iPhone模拟器中运行Unity3d应用 - Can't run Unity3d app in Xcode iPhone simulator 由于缺少文件,因此无法在iPhone Simulator上运行该应用 - Can't run the app on iPhone Simulator because of missing files 无法将iOS / iPhone应用程序构建为i386以外的任何其他应用程序 - Can't build iOS/iPhone app as anything other than i386 无法在 Xcode 10.2 中的模拟器上运行 iOS 应用程序 - Can't run iOS app on simulator in Xcode 10.2 我无法使用iOS模拟器运行任何React应用 - I can't run any react app with iOS simulator 无法在 ios 模拟器上运行我的 flutter 应用程序 - Can't run my flutter app on an ios simulator Mac上的iOS模拟器是运行i386架构,而不是armv7? - iOS simulator on mac is running i386 architecture, not armv7?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM