Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
I get the following when trying to build my app for iOS. It fails whether linking is enabled or not.
AOT Compilation exited with code 134, command:
MONO_PATH=/Users/Jeremy/Library/Caches/Xamarin/mtbs/builds/Mobile360.iOS/24adfb372f3273743301e935311e5967/obj/iPhone/Debug/mtouch-cache/32/Build /Library/Frameworks/Xamarin.iOS.framework/Versions/10.8.0.175/bin/arm-darwin-mono-sgen --debug -O=gsharedvt --aot=mtriple=armv7-ios,data-outfile=/Users/Jeremy/Library/Caches/Xamarin/mtbs/builds/Mobile360.iOS/24adfb372f3273743301e935311e5967/obj/iPhone/Debug/mtouch-cache/Xamarin.iOS.armv7.aotdata,static,asmonly,direct-icalls,full,dwarfdebug,no-direct-calls,outfile=/Users/Jeremy/Library/Caches/Xamarin/mtbs/builds/Mobile360.iOS/24adfb372f3273743301e935311e5967/obj/iPhone/Debug/mtouch-cache/Xamarin.iOS.dll.armv7.s "/Users/Jeremy/Library/Caches/Xamarin/mtbs/builds/Mobile360.iOS/24adfb372f3273743301e935311e5967/obj/iPhone/Debug/mtouch-cache/32/Build/Xamarin.iOS.dll"
Mono Ahead of Time compiler - compiling assembly /Users/Jeremy/Library/Caches/Xamarin/mtbs/builds/Mobile360.iOS/24adfb372f3273743301e935311e5967/obj/iPhone/Debug/mtouch-cache/32/Build/Xamarin.iOS.dll
* Assertion at /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/external/mono/mono/mini/mini-native-types.c:414, condition `t->type == mini_native_type_replace_type (&klass->byval_arg)->type' not met
Please include your full build logs, crash reports (if any), test case (to reproduce) and all version informations.
The easiest way to get exact version information is to use the "Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" button and copy/paste the version informations (you can use the "Copy Information" button).
This happens when compiling Xamarin.iOS.dll and not user code, so it should work for everyone, or fail for everyone, so it looks pretty strange.
Microsoft Visual Studio Professional 2017
Version 15.1 (26403.7) Release
Microsoft .NET Framework
Installed Version: Professional
Visual Basic 2017 00369-60000-00001-AA546
Microsoft Visual Basic 2017
Visual C# 2017 00369-60000-00001-AA546
Microsoft Visual C# 2017
Visual C++ 2017 00369-60000-00001-AA546
Microsoft Visual C++ 2017
Add New File 3.5
The fastest and easiest way to add new files to any project - including files that start with a dot
AndroidSignatureToolCommand Extension 1.0
AndroidSignatureToolCommand Visual Studio Extension Detailed Info
Arduino for Visual Studio 1.0
Arduino extension for Visual Studio. For more information please see docs, faq and forum at http://www.visualmicro.com
ASP.NET and Web Tools 2017 15.0.30320.0
ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 1.0
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2012 4.0.11203.0
For additional information, visit https://www.asp.net/
ASP.NET Web Frameworks and Tools 2017 5.2.50303.0
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.0.30209.0
Azure App Service Tools v3.0.0
Browser Reload on Save 1.0.23
A Visual Studio extension for ASP.NET projects that leverages Browser Link to to reload all connected browsers when files are saved in Visual Studio.
Bundler & Minifier 2.4.340
Common Azure Tools 1.9
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
CSS Tools 1.0.14
Provides additional features to the CSS editor in Visual Studio.
EditorConfig Language Service 1.17.202
Language service for .editorconfig files.
EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.
File Icons 2.6
Adds icons for files that are not recognized by Solution Explorer
File Nesting 2.6.67
Automatically nest files based on file name and enables developers to nest and unnest any file manually
Generate XML Comments from your code, maintain clean and up-to-date documentation, produce help documentation in multiple formats, use intelligent source code Spell Checker in Visual Studio.
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
HTML Tools 1.0.3
Productivity tools for the HTML editor
Image Optimizer 3.6.103
Uses industry standard tools to optimize any JPEG, PNG and Gifs - including animated Gifs. Can do both lossy and lossless optimization.
Image Sprites 1.4.47
Boost your website's performance by creating image sprites to reduce the amount of HTTP requests needed.
The simplest way to transpile JS and JSX to EcmaScript 5 without any complicated node.js tools in your project. It uses the TypeScript compiler behind the scenes.
KofePackagePackage Extension 1.0
KofePackagePackage Visual Studio Extension Detailed Info
Markdown Editor 1.11.201
A full featured Markdown editor with live preview and syntax highlighting. Supports GitHub flavored Markdown.
Merq 1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50131.1
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
Mono Debugging for Visual Studio Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.
Node.js Tools 1.3.50316.00
Adds support for developing and debugging Node.js apps in Visual Studio
NuGet Package Manager 4.1.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Open Command Line 2.1.179
Opens a command line at the root of the project. Support for all consoles such as CMD, PowerShell, Bash etc. Provides syntax highlighting, Intellisense and execution of .cmd and .bat files.
Package Installer 2.0.99
Makes it easier, faster and more convenient than ever to install Bower, npm, Yarn, JSPM, TSD, Typings and NuGet packages to any project
Package Security Alerts 1.0.17
Identifies npm and Bower packages that contains known security vulnerabilities to ensure your project is always using the most secure package versions.
Project File Tools 1.0.1
Provides Intellisense and other tooling for XML based project files such as .csproj and .vbproj files.
SQL Server Data Tools 15.1.61702.140
Microsoft SQL Server Data Tools
Syntax Highlighting Pack 2.6.118
Adds syntax highlighting and snippet support for a wide variety of programming languages such as Clojure, Go, Jade, Lua, Swift, Ruby and many more...
TypeScript tools for Visual Studio
Visual Studio Tools for Universal Windows Apps 15.0.26403.07
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
Vue.js Pack 2017 1.1.8
Web Compiler 1.11.326
Compiler for LESS, Sass and CoffeeScript files
Web Extension Pack 2017 15.0.2
The easiest way to set up Visual Studio for the ultimate web development experience.
Xamarin 22.214.171.124 (3f99c5a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android SDK 126.96.36.199 (b16fb82)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 10.8.0.174 (7656cc6)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Provides ZenCoding for the HTML Editor - full support for static HTML, Razor and WebForms.
What is the best way to provide the full build logs?
You can get more detailed build logs by opening Preferences -> Build and set Log Verbosity to Diagnostic. Try building with that and copy the Build Output.
What about in Visual Studio 2017?
I've been able to resolve the issue. My iOS project was referencing Xamarin.iOS.dll from an old location. By removing the HintPath from the csproj I was able to build the project correctly.
Old HintPath: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll
Path after removal: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll