更新到IOS 11后的Xamarin building_problem

And*_*eas 1 ios xamarin

我已将系统更新为IOS11。适用于Windows的Visualstidio具有所有最新的xamarin更新,Mac os Sierra是最新的,而Xcode是最新版本。

我的问题:如果要在模拟器上调试,则会发生以下错误:

Error error HE0046: Failed to install the app 'ch.ABC' on the device 'iOS 11.0 (15A372) - iPhone 6 Plus': lstat of /Users/administrator/Library/Caches/Xamarin/mtbs/builds/ABC/a3481f272dab3f68e6e828203695f442/bin/iPhoneSimulator/Debug/ABC.app failed: No such file or directory
Run Code Online (Sandbox Code Playgroud)

在Mac上,该路径中存在ABC.app。

Buildlog:

System.IO.FileNotFoundException: The file '/Users/administrator/Library/Caches/Xamarin/mtbs/builds/ABC/a3481f272dab3f68e6e828203695f442/obj/iPhoneSimulator/Debug/build-signature/signature' was not found on the Mac
File name: '/Users/administrator/Library/Caches/Xamarin/mtbs/builds/ABC/a3481f272dab3f68e6e828203695f442/obj/iPhoneSimulator/Debug/build-signature/signature'
at Xamarin.Messaging.Ssh.MessagingFileManager.d__11.MoveNext() in C:\d\lanes\5126\bd7e3753\source\xamarinvs\src\Messaging\Xamarin.Messaging.Ssh\MessagingFileManager.cs:line 171
Run Code Online (Sandbox Code Playgroud)

此签名文件也位于正确的路径上。

我试图修复该错误:

-清理和重建无效。

-删除bin和obj文件夹无效。

-我使配置完全没有效果。

-新项目工作。

-此项目工作是在Visual Studio for Mac中构建的

有谁知道这里可能是什么问题?

谢谢安德烈亚斯

编辑:我认为这是一个普遍的Xamarin问题。在模拟器中更新到IOS 11后,旧项目(IOS11之前)无法运行。

Dan*_*erg 5

因此,我决定通过使用Beyond Compare逐个文件地更改文件,直到没有差异为止,逐步完成将新创建的项目(可以很好地部署到iOS 11模拟器)变异到我的项目中的整个过程(没有)。

这花了四个小时(大型项目)。但是,所有这些都无济于事。:)

因为事实证明,最终改变的是从解决方案中删除了iOS项目,然后将其重新添加(使用“添加现有项目”命令)。

这将更改解决方案文件中的三件事:

  1. 将其更新为最新的VS解决方案格式版本。
  2. 将iOS项目移到底部的几个位置。
  3. 修复了一些奇怪的构建配置和/或平台配置不一致的问题。

自然,我以为最后一个技巧就可以了,所以我只尝试单独应用该增量,但实际上并没有解决问题!我不完全理解为什么,但是实际上执行删除和重新添加项目的操作。

很想知道这是否对其他人有用。