Bug 56110 - AOT Compilation exited with code 134
Summary: AOT Compilation exited with code 134
Alias: None
Product: iOS
Classification: Xamarin
Component: Mono runtime / AOT compiler ()
Version: XI 10.10 (d15-2)
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Zoltan Varga
Depends on:
Reported: 2017-05-08 20:02 UTC by Jeremy Marcus
Modified: 2017-05-11 19:35 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description Jeremy Marcus 2017-05-08 20:02:13 UTC
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/ --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
  AOTID 58F759CB-793F-F340-FAF1-FF3F61BBCE6F
  * 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
Comment 1 Timothy Risi 2017-05-09 01:02:55 UTC
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).
Comment 2 Zoltan Varga 2017-05-09 01:29:34 UTC
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.
Comment 3 Jeremy Marcus 2017-05-09 13:19:53 UTC
Microsoft Visual Studio Professional 2017 
Version 15.1 (26403.7) Release
Microsoft .NET Framework
Version 4.7.02500

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
Adds support for bundling and minifying JavaScript, CSS and HTML files in any project.

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

GhostDoc   5.5.17070.0
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.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript Transpiler   0.9.22
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.

JavaScript UWP Project System   2.0
JavaScript UWP Project System

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
Contains HTML Intellisense and code snippets for the Vue.js JavaScript library

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 (3f99c5a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK (b16fb82)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK (7656cc6)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

ZenCoding   1.2.11
Provides ZenCoding for the HTML Editor - full support for static HTML, Razor and WebForms.
Comment 4 Jeremy Marcus 2017-05-09 13:20:10 UTC
What is the best way to provide the full build logs?
Comment 5 Timothy Risi 2017-05-09 16:31:10 UTC
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.
Comment 6 Jeremy Marcus 2017-05-09 16:54:24 UTC
What about in Visual Studio 2017?
Comment 7 Jeremy Marcus 2017-05-11 19:35:49 UTC
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