xamarin.forms - 错误 : error MT1008: Failed to launch the simulator

标签 xamarin.forms xamarin.ios

我用 Xamarin.Forms为了开发跨平台应用程序,但我有一个问题。我用 VS2015 Enterprise .在 iPhone Simulator 上模拟我的应用程序时出现问题。我选择了“配置”模式作为调试和“平台”模式作为 iPhone 模拟器。在 Windows 端我使用 Xamarin.iOS 11.2 Mac端也一样。我可以成功地将 Windows 连接到 Mac。我用 XCode 9.2 .

当我运行我的应用程序时,输出是:

Launch failed. The app 'ADF.XPF.iOS' could not be launched on 'iPhone 5s iOS 11.2'. Error: error MT1008: Failed to launch the simulator: Could not find file "/Users/yazilim/Library/Caches/Xamarin/mtbs/builds/ADF.XPF.iOS/3d07b519b07c870401ed8b5058cf1d91/bin/iPhoneSimulator/Debug/trgovegmmobil.app/trgovegmmobil"

最佳答案

如果 mtouch 无法启动模拟器,则会报告此错误。有时会发生这种情况,因为已经有一个陈旧或死的模拟器进程在运行。

在 Unix 命令行上发出的以下命令可用于杀死卡住的模拟器进程:

$ launchctl list|grep UIKitApplication|awk '{print $3}'|xargs launchctl remove

引用 here .

关于xamarin.forms - 错误 : error MT1008: Failed to launch the simulator,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49747811/

相关文章:

ios - 无法在 Visual Studio 2015 中添加 iOS 应用程序图标

c# - 有没有什么解决方案可以用 C# 开发黑莓应用程序,比如用于 Android 的 Mono 或 Monotouch?

c# - Xamarin iOS ViewCellRenderer

c# - block 的 Monotouch 绑定(bind)语法

c# - 创建列表后如何更新 Xamarin Forms ListView 的 ViewCell 属性?

listview - 在 ListView Xamarin 表单中滚动时图像消失

android - Xamarin 表格 : Is it possible to add disclosure indicator in Android?

c# - 在使用 IntPtr 构造函数进行单元重用时设置 Xamarin UITableViewCellStyle

xamarin - OnAppearing 在 iOS 和 Android 上不同

c# - 如何在 Xamarin.Forms 上更改页面时禁用 ListView 重新加载项目?