Hello,
I'm starting using Xamarin, I've build an simple app on Windows and everything was fine, but now that't I'm trying to use on Mac, I just can't build the app or debbug on my device.
When I try to emulate, it works fine, but when I try to emulate it i get the following error:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Error: Tool exited with code: 1. Output: dsymutil: invalid option -- z
NAME
dsymutil -- manipulate archived DWARF debug symbol files.
SYNOPSIS
dsymutil [--arch=ARCH] [--out=path] exe_path
DESCRIPTION
dsymutil links the DWARF debug information found in the object files
for an executable exe_path by using debug symbols information contained in
its symbol table.
A list of flags and their descriptions: --arch=ARCH Link DWARF debug information only for specified CPU architecture types. Architectures may be specified by name or by number. When using this option, an error will be returned if any architectures can not be properly linked. This option can be specified multiple times, once for each desired architecture. All cpu architectures will be linked by default and any architectures that can't be properly linked will not cause dsymutil to return an error as long as at least one architecture was able to link successfully. -h --help Display the help documentation for this command. -f --flat Produce a flat dSYM file (not a bundle). -o path --out=path Specifies an alternate path to place the .dSYM bundle. The default dSYM bundle path is created by appending '.dSYM' to the executable name. --oso-prepend-path=path Specifies a path to prepend to all debug symbol object file paths. -s --symtab Dumps the symbol table found in executable or object file(s) and exits. -t n --threads=n Specifies the maximum number (n) of simultaneous threads to use when linking multiple architectures. -v --version Display the current version and build date of the dsymutil binary. --verbose Display verbose information when linking.
(Tessmac.iOS)
Output Error
Task "DSymUtil" execution -- FAILED
Done building target "_GenerateDebugSymbols" in project "/Users/mario.aleo/Projects/Tessmac/iOS/Tessmac.iOS.csproj".-- FAILED
Done building project "/Users/mario.aleo/Projects/Tessmac/iOS/Tessmac.iOS.csproj".-- FAILED
Build FAILED.
Warnings:
/Users/mario.aleo/Projects/Tessmac/iOS/Tessmac.iOS.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets (_CompileToNative target) ->
MTOUCH: warning MT0030: The executable name (TessmaciOS) and the app name (Tessmac.iOS.app) are different, this may prevent crash logs from getting symbolicated properly. MTOUCH: warning MT0049: PushKit.framework is supported only if deployment target is 8.0 or later. PushKit features might not work correctly. MTOUCH: warning MT0049: PushKit.framework is supported only if deployment target is 8.0 or later. PushKit features might not work correctly.
Errors:
/Users/mario.aleo/Projects/Tessmac/iOS/Tessmac.iOS.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets (_GenerateDebugSymbols target) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : Tool exited with code: 1. Output: dsymutil: invalid option -- z
Answers
You need to update your Command Line Tools.
I assume you're using Mavericks (since I believe this was fixed in Yosemite), in which case you can update the Command Line Tools in Xcode's preferences.
I'm using Yosemite and also I'm using xcode 6 with it's last command line tools.
Anyway, thanks for the answer.
I'm still with problem, I've already tried to reinstall the Command Line Tool, reinstall XCode and to reinstall both, but the problem still there.
Finally get rid of the error.
Xamarin was using a dsymutil on /usr/bin/ that was out of date, here is the way to fix it:
Install the newest Command Line Tool, and "cd" to it's directory, probable at /Library/Developer/CommandLineTools/.
Inside it you'll find the dsymutil at /usr/bin/dsymutil, then copy it to /usr/bin/.
Now try to build the app on Xamarin.
Remember to verify if everything is up to date and if it's all from compatible versions.
I already tried, but not work,
I'm using Vs 2019 and Mac version 10.15.2