Noob Coder
Noob Coder

Reputation: 524

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

dsymutil exited with code 1

Things I did:

Just an FYI

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.

Upvotes: 2

Views: 5025

Answers (5)

Sivabalaa Jothibose
Sivabalaa Jothibose

Reputation: 800

Here is the solution:

I went inside 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)

Click here for more details

Upvotes: 6

Mustafa Ah
Mustafa Ah

Reputation: 19

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.

Just go to Visual Studio → Check for Updates and then update all.

Source: xamarin_forums

Upvotes: 1

Eric Bader
Eric Bader

Reputation: 31

This discussion was very helpful. I also had to make sure my VS for Mac updates were all installed. Once they were, everything needed to align just right, it worked.

Upvotes: 1

Mario M Greer
Mario M Greer

Reputation: 31

Check for Xamarin.ios version, mine was incompatible with 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

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

after that I got no errors

Upvotes: 2

Noob Coder
Noob Coder

Reputation: 524

The error is kind of a hair puller.

So here is how I did it

First I uninstalled ALL of the XCODE

I followed this article on stackoverflow

After that I downloaded the Xcode from Apple from this article

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. I tested this and wasted alot of time.

Upvotes: 0

Related Questions