我用 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/