简体   繁体   English

xamarin IOS:警告:应用程序无法安装+启动

[英]xamarin IOS: Warning: App failed to install+launch

I am facing the issue below,hope some one will help me out. 我正面临以下问题,希望有人能帮助我。

I am Using visual studio 2019 to run the xamarin IOS project and paired to MAC succesfully, but the simulator has failed to launch the app and throws the exception below 我正在使用Visual Studio 2019运行xamarin IOS项目并成功与MAC配对,但是模拟器无法启动应用程序并在下面引发异常

System.Exception: Failed to launch the simulator: Could not find file "/Users/user/Library/Caches/Xamarin/mtbs/builds/TigrinyaDictionary.iOS/f5727f6bbdd6a791c1a56d7c269a65ff/bin/iPhoneSimulator/Debug/TigrinyaDictionary.iOS.app/TigrinyaDictionary.iOS" at Xamarin.Simulator.Core.Protocol.SimulatorClient.d__26.MoveNext() in E:\\A_work\\1703\\s\\Xamarin.Simulator.Core\\Protocol\\SimulatorClient.cs:line 293 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) System.Exception:无法启动模拟器:找不到文件“ /Users/user/Library/Caches/Xamarin/mtbs/builds/TigrinyaDictionary.iOS/f5727f6bbdd6a791c1a56d7c269a65ff/bin/iPhoneSimulator/Debug/TigrinyaDictionary.iOS.app/T。 X'的Ea:\\ A_work \\ 1703 \\ s \\ Xamarin.Simulator.Core \\ Protocol \\ SimulatorClient.cs:第293行的Xamarin.Simulator.Core.Protocol.SimulatorClient.d__26.MoveNext()引发异常的先前位置---在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)在System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(任务任务)在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) )
at Xamarin.Simulator.Windows.App.d__19.MoveNext() in E:\\A_work\\1703\\s\\Xamarin.Simulator.Windows\\App.xaml.cs:line 340 ErrorCode: 1008 在Xamarin.Simulator.Windows.App.d__19.MoveNext()中的E:\\ A_work \\ 1703 \\ s \\ Xamarin.Simulator.Windows \\ App.xaml.cs:line 340错误代码:1008

It sounds like your build wasn't completed successfully (errors) and the produced App bundle is incorrect. 听起来您的构建未成功完成(错误),并且产生的App包不正确。

  1. I would check the build logs to see if there are any errors (for issue like this please always give your full verbose build logs). 我会检查构建日志以查看是否有任何错误(对于此类问题,请始终提供完整的详细构建日志)。
  2. I would check the App bundle on the Mac: /Users/user/Library/Caches/Xamarin/mtbs/builds/TigrinyaDictionary.iOS . 我将在Mac上检查该应用程序捆绑包: /Users/user/Library/Caches/Xamarin/mtbs/builds/TigrinyaDictionary.iOS Check for completeness. 检查完整性。
    You should be able to trace back in the build log where and why that wasn't generated (built). 您应该能够在构建日志中追溯未生成(构建)的位置和原因。
  3. I would install the latest bits of Visual Studio and the Xamarin Support, clean your project, rebuild and re-deploy. 我将安装最新版本的Visual Studio和Xamarin支持,清理您的项目,重新生成并重新部署。

If none of that works, you can report a problem directly in the IDE and that will open a feedback ticket with the Xamarin team. 如果这些都不起作用,则可以直接在IDE中报告问题 ,这将打开Xamarin团队的反馈单。
Please add your full build logs (critical for an issue like this), ideally test project to reproduce and all product version information. 请添加完整的构建日志(对于此类问题至关重要),最好是测试要复制的项目以及所有产品版本信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM