简体   繁体   English

如何在 Xamarin 中修复 dsymutil

[英]How to fix dsymutil in Xamarin

I am trying to build the iOS App on a real device but unfortunately I get hit by a我正在尝试在真实设备上构建 iOS 应用程序,但不幸的是我被

dsymutil exited with code 1

Things I did:我做的事情:

  • I did search google but it says my Harddisk is full which is not the case.我确实搜索了谷歌,但它说我的硬盘已满,事实并非如此。

  • I did try to clean and build multiple times - No success我确实尝试过多次清理和构建 - 没有成功

  • I did try to reinstall CommandTools by using command xcode-select --install - No Success我确实尝试使用命令xcode-select --install重新安装 CommandTools - 不成功

  • I did remove the CommandTools and then did the reinstall - No Success我确实删除了 CommandTools,然后重新安装 - 没有成功

Just an FYI仅供参考

  • I am using Xcode 11.4 Beta 2我正在使用 Xcode 11.4 Beta 2

  • I am logged in with my Apple Account on the Xcode我在 Xcode 上使用我的 Apple 帐户登录

What my cause this issue?我这个问题是什么原因造成的?

Any other info you would like to ask do ask.您想询问的任何其他信息都可以询问。

Thanks谢谢

Build Log:构建日志:

  CIS.iOS -> D:\VS Projects\CIS\CIS\CIS\CIS.iOS\bin\iPhone\Debug\CIS.iOS.exe

  Detected signing identity:

    Code Signing Key: "#####"
 (7ECA06BC28377204C91D2E63E69C233982161B28)

    Provisioning Profile: "Development" (5aa7573d-6dc8-43e4-9bb0-c65efc5a361a)

    Bundle Id: com.#####

    App Id: 37M96SGRTW.com.#####

  /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch @/Users/zilon/Library/Caches/Xamarin/mtbs/builds/CIS.iOS/0e17d2ede92713351eb68ac0146dd15c/obj/iPhone/Debug/response-file.rsp --gcc_flags=-ObjC 

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(842,3): warning MT4174: Unable to locate the block to delegate conversion method for the method CIS.iOS.AppDelegate.WillPresentNotification's parameter #3.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil -t 4 -z -o bin/iPhone/Debug/CIS.iOS.app/../Protobuf.framework.dSYM bin/iPhone/Debug/CIS.iOS.app/Frameworks/Protobuf.framework/Protobuf 

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(963,3): error MSB6006: "dsymutil" exited with code 1.

Check for Xamarin.ios version, mine was incompatible with visual studio Mac检查 Xamarin.ios 版本,我的与 Visual Studio Mac 不兼容

i changed it when I was debuging on a windows machine connected to a Mac and VS windows said if I wanted to download compatible version, clicked yes and it downloaded and installed on the Mac computer我在连接到 Mac 的 windows 机器上调试时更改了它,VS windows 说如果我想下载兼容版本,点击是,它下载并安装在 Mac 电脑上

After that, I wasn't unable to debug on physical devices之后,我无法在物理设备上进行调试

suddenly after almost giving up a "Xamarin.ios update is ready, click to install update" came on VS Mac在几乎放弃之后突然出现“Xamarin.ios 更新已准备好,点击安装更新”出现在 VS Mac 上

after that I got no errors之后我没有错误

Here is the solution:这是解决方案:

I went inside Xcode.我进入了 Xcode。

Preferences>Locations> Command Line Tools.首选项>位置>命令行工具。 Mine was on 13.2, needed to upgrade to 13.3 (Thought I already had but it must not have done it automatically)我的是 13.2,需要升级到 13.3(以为我已经有了,但它一定不是自动完成的)

Click here for more details点击这里查看更多详情

This discussion was very helpful.这次讨论很有帮助。 I also had to make sure my VS for Mac updates were all installed.我还必须确保我的 VS for Mac 更新已全部安装。 Once they were, everything needed to align just right, it worked.一旦它们是,一切都需要恰到好处地对齐,它起作用了。

We have resolved this issue now.我们现在已经解决了这个问题。 All we did is we just updated Xamarin.iOS, Mono Framework MDK and Visual Studio for Mac to the latest versions.我们所做的只是将 Xamarin.iOS、Mono Framework MDK 和 Visual Studio for Mac 更新到最新版本。

Just go to Visual Studio → Check for Updates and then update all.只需转到 Visual Studio → 检查更新,然后全部更新。

Source: xamarin_forums资料来源: xamarin_forums

The error is kind of a hair puller.这个错误有点像拔毛器。

So here is how I did it所以这就是我的做法

First I uninstalled ALL of the XCODE首先我卸载了所有的 XCODE

I followed this article on stackoverflow我在stackoverflow上关注了这篇文章

After that I downloaded the Xcode from Apple from this article之后我从这篇文章中从 Apple 下载了 Xcode

Also download the CommandLine tools for that version.同时下载该版本的命令行工具。 After that it worked and now I am not getting any error.之后它工作了,现在我没有收到任何错误。

Remember this that CommandLine Tool versions should also match.请记住,命令行工具版本也应该匹配。 11.4.2 will not work with 11.3.1. 11.4.2 不适用于 11.3.1。 I tested this and wasted alot of time.我对此进行了测试并浪费了很多时间。

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

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